Changes in src/ResolvExpr/CurrentObject.cc [d55d7a6:84e8423]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/CurrentObject.cc
rd55d7a6 r84e8423 141 141 base = at->get_base(); 142 142 memberIter = createMemberIterator( base ); 143 if ( at->isVarLen ) throw SemanticError( at, "VLA initialization does not support @=");143 if ( at->isVarLen ) throw SemanticError( "VLA initialization does not support @=", at ); 144 144 setSize( at->get_dimension() ); 145 145 } … … 156 156 PRINT( std::cerr << "array type with size: " << size << std::endl; ) 157 157 } catch ( SemanticError & ) { 158 throw SemanticError( expr, "Constant expression of non-integral type in array dimension: ");158 throw SemanticError( "Constant expression of non-integral type in array dimension: ", expr ); 159 159 } 160 160 } else if ( CastExpr * castExpr = dynamic_cast< CastExpr * >( expr ) ) { … … 179 179 index = constExpr->intValue(); 180 180 } catch( SemanticError & ) { 181 throw SemanticError( expr, "Constant expression of non-integral type in array designator: ");181 throw SemanticError( "Constant expression of non-integral type in array designator: ", expr ); 182 182 } 183 183 } else if ( CastExpr * castExpr = dynamic_cast< CastExpr * >( expr ) ) { … … 532 532 } // for 533 533 if ( desigAlts.size() > 1 ) { 534 throw SemanticError( designation, toString("Too many alternatives (", desigAlts.size(), ") for designation: "));534 throw SemanticError( toString("Too many alternatives (", desigAlts.size(), ") for designation: "), designation ); 535 535 } else if ( desigAlts.size() == 0 ) { 536 throw SemanticError( designation, "No reasonable alternatives for designation: ");536 throw SemanticError( "No reasonable alternatives for designation: ", designation ); 537 537 } 538 538 DesignatorChain & d = desigAlts.back();
Note:
See TracChangeset
for help on using the changeset viewer.