@@ -170,9 +170,9 @@ void cpp_typecheck_resolvet::remove_duplicates(
170170 irep_idt id;
171171
172172 if (it->id ()==ID_symbol)
173- id=it-> get (ID_identifier );
174- else if (it->id ()==ID_type && it->type ().id ()==ID_symbol )
175- id=it->type (). get (ID_identifier );
173+ id=to_symbol_expr (*it). get_identifier ( );
174+ else if (it->id ()==ID_type && it->type ().id ()==ID_symbol_type )
175+ id=to_symbol_type ( it->type ()). get_identifier ( );
176176
177177 if (id==" " )
178178 {
@@ -350,7 +350,7 @@ exprt cpp_typecheck_resolvet::convert_identifier(
350350 typet followed_type=symbol.type ;
351351 bool constant=followed_type.get_bool (ID_C_constant);
352352
353- while (followed_type.id ()==ID_symbol )
353+ while (followed_type.id ()==ID_symbol_type )
354354 {
355355 followed_type =
356356 cpp_typecheck.follow (to_symbol_type (followed_type));
@@ -2238,8 +2238,8 @@ void cpp_typecheck_resolvet::filter_for_named_scopes(
22382238 assert (pcomp.get_bool (ID_is_type));
22392239 const typet &type=pcomp.type ();
22402240 assert (type.id ()!=ID_struct);
2241- if (type.id ()==ID_symbol )
2242- identifier=type. get (ID_identifier );
2241+ if (type.id ()==ID_symbol_type )
2242+ identifier=to_symbol_type ( type). get_identifier ( );
22432243 else
22442244 continue ;
22452245 }
@@ -2260,8 +2260,8 @@ void cpp_typecheck_resolvet::filter_for_named_scopes(
22602260 new_set.insert (&class_id);
22612261 break ;
22622262 }
2263- else if (symbol.type .id ()==ID_symbol )
2264- identifier=symbol.type . get (ID_identifier );
2263+ else if (symbol.type .id ()==ID_symbol_type )
2264+ identifier=to_symbol_type ( symbol.type ). get_identifier ( );
22652265 else
22662266 break ;
22672267 }
@@ -2303,7 +2303,7 @@ void cpp_typecheck_resolvet::filter_for_named_scopes(
23032303 if (e.id ()!=ID_type)
23042304 continue ; // expressions are definitively not a scope
23052305
2306- if (e.type ().id ()==ID_symbol )
2306+ if (e.type ().id ()==ID_symbol_type )
23072307 {
23082308 symbol_typet type=to_symbol_type (e.type ());
23092309
@@ -2314,7 +2314,7 @@ void cpp_typecheck_resolvet::filter_for_named_scopes(
23142314 const symbolt &symbol=cpp_typecheck.lookup (identifier);
23152315 assert (symbol.is_type );
23162316
2317- if (symbol.type .id ()==ID_symbol )
2317+ if (symbol.type .id ()==ID_symbol_type )
23182318 type=to_symbol_type (symbol.type );
23192319 else if (symbol.type .id ()==ID_struct ||
23202320 symbol.type .id ()==ID_incomplete_struct ||
0 commit comments