Changeset 1ed3fe7c
- Timestamp:
- Jul 1, 2022, 2:02:15 PM (17 months ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
- Children:
- 120867e
- Parents:
- adf03a6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/AggregateDecl.cc
radf03a6 r1ed3fe7c 10 10 // Created On : Sun May 17 23:56:39 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Dec 16 15:07:20 201913 // Update Count : 3 112 // Last Modified On : Fri Jul 1 09:12:33 2022 13 // Update Count : 32 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( " Non-constexpr in initialization of enumerator: ", field) );127 if ( ! result.second ) SemanticError( init->location, toString( "Enumerator value for '", field, "' is not an integer constant" ) ); 128 128 currentValue = result.first; 129 129 }
Note: See TracChangeset
for help on using the changeset viewer.