Changeset 7f18438
- Timestamp:
- Aug 5, 2024, 3:34:05 PM (4 months ago)
- Branches:
- master
- Children:
- 830edc6
- Parents:
- f6d2e9b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/TypeData.cpp
rf6d2e9b r7f18438 1474 1474 SemanticError( td->location, "Opague cannot have an explicit initializer value." ); 1475 1475 } else if ( cur->has_enumeratorValue() ) { 1476 ast::Expr * initValue; 1477 if (ret->isCfa && ret->base) { 1478 initValue = new ast::CastExpr( cur->enumeratorValue->location, maybeMoveBuild( cur->consume_enumeratorValue() ), ret->base ); 1479 } else { 1480 initValue = maybeMoveBuild( cur->consume_enumeratorValue() ); 1481 } 1476 1482 object->init = new ast::SingleInit( 1477 1483 td->location, 1478 maybeMoveBuild( cur->consume_enumeratorValue() ),1484 initValue, 1479 1485 ast::NoConstruct 1480 1486 );
Note: See TracChangeset
for help on using the changeset viewer.