Changeset 8315947 for src/ResolvExpr
- Timestamp:
- Jul 13, 2024, 3:29:22 PM (5 months ago)
- Branches:
- master
- Children:
- 2e6b2a0
- Parents:
- 76b507d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Resolver.cpp
r76b507d r8315947 322 322 323 323 namespace { 324 bool structOrUnion ( const Candidate & i ) {324 bool structOrUnionOrEnum( const Candidate & i ) { 325 325 const ast::Type * t = i.expr->result->stripReferences(); 326 return dynamic_cast< const ast::StructInstType * >( t ) || dynamic_cast< const ast::UnionInstType * >( t ) ;326 return dynamic_cast< const ast::StructInstType * >( t ) || dynamic_cast< const ast::UnionInstType * >( t ) || dynamic_cast< const ast::EnumInstType * >( t ); 327 327 } 328 328 /// Predicate for "Candidate has integral type" … … 1140 1140 for (auto & expr : exprs) { 1141 1141 // only struct- and union-typed expressions are viable candidates 1142 expr = findKindExpression( expr, context, structOrUnion , "with expression" );1142 expr = findKindExpression( expr, context, structOrUnionOrEnum, "with expression" ); 1143 1143 1144 1144 // if with expression might be impure, create a temporary so that it is evaluated once
Note: See TracChangeset
for help on using the changeset viewer.