Changeset 34a1d2e for src/Parser
- Timestamp:
- Jan 14, 2023, 10:04:51 AM (3 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 9845cb6
- Parents:
- b3d794fc (diff), d61d034 (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/Parser/TypeData.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/TypeData.cc
rb3d794fc r34a1d2e 933 933 member->set_init( new SingleInit( maybeMoveBuild< Expression >( cur->consume_enumeratorValue() ) ) ); 934 934 } else if ( !cur->initializer ) { 935 if ( baseType && (!dynamic_cast<BasicType *>(baseType) || !dynamic_cast<BasicType *>(baseType)->is WholeNumber())) {935 if ( baseType && (!dynamic_cast<BasicType *>(baseType) || !dynamic_cast<BasicType *>(baseType)->isInteger())) { 936 936 SemanticError( td->location, "Enumerators of an non-integer typed enum must be explicitly initialized." ); 937 937 }
Note:
See TracChangeset
for help on using the changeset viewer.