Changes in src/SynTree/AggregateDecl.cc [1ed3fe7c:4559b34]
- File:
-
- 1 edited
-
src/SynTree/AggregateDecl.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/AggregateDecl.cc
r1ed3fe7c r4559b34 10 10 // Created On : Sun May 17 23:56:39 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Jul 1 09:12:33 202213 // Update Count : 3 212 // Last Modified On : Mon Dec 16 15:07:20 2019 13 // Update Count : 31 14 14 // 15 15 … … 125 125 SingleInit * init = strict_dynamic_cast< SingleInit * >( field->init ); 126 126 auto result = eval( init->value ); 127 if ( ! result.second ) SemanticError( init->location, toString( " Enumerator value for '", field, "' is not an integer constant") );127 if ( ! result.second ) SemanticError( init->location, toString( "Non-constexpr in initialization of enumerator: ", field ) ); 128 128 currentValue = result.first; 129 129 }
Note:
See TracChangeset
for help on using the changeset viewer.