Changeset a8404d9 for src/Validate
- Timestamp:
- Feb 12, 2025, 11:33:33 AM (7 months ago)
- Branches:
- master
- Children:
- 5e8d75bb
- Parents:
- 54cd1a51
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Validate/EnumAndPointerDecay.cpp
r54cd1a51 ra8404d9 48 48 } else if ( auto value = member.as<ast::InlineMemberDecl>() ) { 49 49 auto targetEnum = symtab.lookupEnum( value->name ); 50 // assert( targetEnum );51 50 if (!targetEnum) { 52 51 SemanticError(value, "Only another enum is allowed for enum inline syntax "); 53 52 } 54 53 const ast::EnumInstType * instType = new ast::EnumInstType(targetEnum); 55 mut->inlinedDecl. push_back( std::move(instType));54 mut->inlinedDecl.emplace_back( instType ); 56 55 for ( auto enumMember : targetEnum->members ) { 57 56 auto enumObject = enumMember.strict_as<ast::ObjectDecl>();
Note:
See TracChangeset
for help on using the changeset viewer.