Changes in src/Parser/ParseNode.h [1e30df7:82ff4ed1]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ParseNode.h
r1e30df7 r82ff4ed1 10 10 // Created On : Sat May 16 13:28:16 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Feb 2 09:15:49202213 // Update Count : 9 0512 // Last Modified On : Tue Oct 18 16:22:15 2022 13 // Update Count : 937 14 14 // 15 15 … … 240 240 static DeclarationNode * newEnumConstant( const std::string * name, ExpressionNode * constant ); 241 241 static DeclarationNode * newEnumValueGeneric( const std::string * name, InitializerNode * init ); 242 static DeclarationNode * newEnumInLine( const std::string name );243 242 static DeclarationNode * newName( const std::string * ); 244 243 static DeclarationNode * newFromTypeGen( const std::string *, ExpressionNode * params ); … … 340 339 341 340 bool inLine = false; 342 bool enumInLine = false;343 341 Type::FuncSpecifiers funcSpecs; 344 342 Type::StorageClasses storageClasses; … … 465 463 errors.append( e ); 466 464 } // try 467 cur = dynamic_cast< NodeType * >( cur->get_next() ); 465 const ParseNode * temp = (cur->get_next()); 466 cur = dynamic_cast< const NodeType * >( temp ); // should not return nullptr 467 if ( ! cur && temp ) { // non-homogeneous nodes ? 468 SemanticError( temp->location, "internal error, non-homogeneous nodes founds in buildList processing." ); 469 } // if 468 470 } // while 469 471 if ( ! errors.isEmpty() ) {
Note: See TracChangeset
for help on using the changeset viewer.