Changeset 251ce80 for src/AST/SymbolTable.cpp
- Timestamp:
- Jun 1, 2023, 6:29:47 PM (13 months ago)
- Branches:
- ast-experimental, master
- Children:
- 24d6572, ded6c2a6
- Parents:
- 1803d4d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/SymbolTable.cpp
r1803d4d r251ce80 278 278 } else { 279 279 // typedef redeclarations are errors only if types are different 280 if ( ! ResolvExpr::typesCompatible( existing->base, added->base , SymbolTable{}) ) {280 if ( ! ResolvExpr::typesCompatible( existing->base, added->base ) ) { 281 281 SemanticError( added->location, "redeclaration of " + added->name ); 282 282 } … … 643 643 } else if ( existing.id->linkage.is_mangled 644 644 || ResolvExpr::typesCompatible( 645 added->get_type(), existing.id->get_type() , SymbolTable{}) ) {645 added->get_type(), existing.id->get_type() ) ) { 646 646 647 647 // it is a conflict if one declaration is deleted and the other is not
Note: See TracChangeset
for help on using the changeset viewer.