Changeset 8f557161 for src/ResolvExpr
- Timestamp:
- Jun 13, 2023, 4:33:16 PM (18 months ago)
- Branches:
- master
- Children:
- 5668740, fec8bd1
- Parents:
- 576aadb
- Location:
- src/ResolvExpr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/CurrentObject.cc
r576aadb r8f557161 689 689 690 690 auto arg = eval( expr ); 691 index = arg.first; 691 assertf( arg.hasKnownValue, "Non-evaluable expression made it to IndexIterator" ); 692 index = arg.knownValue; 692 693 693 694 // if ( auto constExpr = dynamic_cast< const ConstantExpr * >( expr ) ) { … … 728 729 size_t getSize( const Expr * expr ) { 729 730 auto res = eval( expr ); 730 if ( !res. second) {731 if ( !res.hasKnownValue ) { 731 732 SemanticError( location, toString( "Array designator must be a constant expression: ", expr ) ); 732 733 } 733 return res. first;734 return res.knownValue; 734 735 } 735 736 -
src/ResolvExpr/Resolver.cc
r576aadb r8f557161 1341 1341 auto mutAttr = mutate(attr); 1342 1342 mutAttr->params.front() = resolved; 1343 if (! result. second) {1343 if (! result.hasKnownValue) { 1344 1344 SemanticWarning(loc, Warning::GccAttributes, 1345 1345 toCString( name, " priorities must be integers from 0 to 65535 inclusive: ", arg ) ); 1346 1346 } 1347 1347 else { 1348 auto priority = result. first;1348 auto priority = result.knownValue; 1349 1349 if (priority < 101) { 1350 1350 SemanticWarning(loc, Warning::GccAttributes,
Note: See TracChangeset
for help on using the changeset viewer.