Fatal Error C1054

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Fatal Error C1054.

compiler limit : initializers nested too deeply

The code exceeds the nesting limit on initializers (10-15 levels, depending on the combination of types being initialized).

To fix by using the following possible solutions

  1. Simplify the data types being initialized to reduce nesting.

  2. Initialize variables in separate statements after the declaration.

Show: