Changeset 1fc111c for src/ResolvExpr
- Timestamp:
- Sep 6, 2023, 1:30:54 AM (16 months ago)
- Branches:
- master
- Children:
- 4894239, 92d8cda
- Parents:
- efe39bb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/ResolveTypeof.cc
refe39bb r1fc111c 253 253 const ast::ObjectDecl * mem = baseEnum->members.at(m).as<const ast::ObjectDecl>(); 254 254 assert(mem); 255 if ( mem->init ) { 256 const ast::SingleInit * memInit = mem->init.as<const ast::SingleInit>(); 257 ast::Expr * initValue = shallowCopy( memInit->value.get() ); 258 newDesination->designators.push_back( initValue ); 259 } else { 260 SemanticError(des->location, "TODO: Enum Array Designation with no explicit value is not implemented"); 261 } 255 const ast::ConstantExpr * enumAsInit = ast::ConstantExpr::from_int(newDesination->location, m); 256 newDesination->designators.push_back( enumAsInit ); 262 257 } 263 258 }
Note: See TracChangeset
for help on using the changeset viewer.