Changeset 25404c7 for src/SynTree
- Timestamp:
- Jul 5, 2022, 9:36:59 AM (4 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
- Children:
- d4b37ab
- Parents:
- 06bdba4 (diff), 9c6443e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
src/SynTree/AggregateDecl.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/AggregateDecl.cc
r06bdba4 r25404c7 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.