@@ -171,7 +171,7 @@ void cpp_typecheck_resolvet::remove_duplicates(
171
171
172
172
if (it->id ()==ID_symbol)
173
173
id = to_symbol_expr (*it).get_identifier ();
174
- else if (it->id ()==ID_type && it->type ().id ()==ID_symbol )
174
+ else if (it->id ()==ID_type && it->type ().id ()==ID_symbol_type )
175
175
id = to_symbol_type (it->type ()).get_identifier ();
176
176
177
177
if (id==" " )
@@ -350,7 +350,7 @@ exprt cpp_typecheck_resolvet::convert_identifier(
350
350
typet followed_type=symbol.type ;
351
351
bool constant=followed_type.get_bool (ID_C_constant);
352
352
353
- while (followed_type.id ()==ID_symbol )
353
+ while (followed_type.id ()==ID_symbol_type )
354
354
{
355
355
followed_type =
356
356
cpp_typecheck.follow (to_symbol_type (followed_type));
@@ -2238,7 +2238,8 @@ void cpp_typecheck_resolvet::filter_for_named_scopes(
2238
2238
assert (pcomp.get_bool (ID_is_type));
2239
2239
const typet &type=pcomp.type ();
2240
2240
assert (type.id ()!=ID_struct);
2241
- if (type.id ()==ID_symbol)
2241
+
2242
+ if (type.id ()==ID_symbol_type)
2242
2243
identifier = to_symbol_type (type).get_identifier ();
2243
2244
else
2244
2245
continue ;
@@ -2260,7 +2261,7 @@ void cpp_typecheck_resolvet::filter_for_named_scopes(
2260
2261
new_set.insert (&class_id);
2261
2262
break ;
2262
2263
}
2263
- else if (symbol.type .id ()==ID_symbol )
2264
+ else if (symbol.type .id ()==ID_symbol_type )
2264
2265
identifier = to_symbol_type (symbol.type ).get_identifier ();
2265
2266
else
2266
2267
break ;
@@ -2303,7 +2304,7 @@ void cpp_typecheck_resolvet::filter_for_named_scopes(
2303
2304
if (e.id ()!=ID_type)
2304
2305
continue ; // expressions are definitively not a scope
2305
2306
2306
- if (e.type ().id ()==ID_symbol )
2307
+ if (e.type ().id ()==ID_symbol_type )
2307
2308
{
2308
2309
symbol_typet type=to_symbol_type (e.type ());
2309
2310
@@ -2314,7 +2315,7 @@ void cpp_typecheck_resolvet::filter_for_named_scopes(
2314
2315
const symbolt &symbol=cpp_typecheck.lookup (identifier);
2315
2316
assert (symbol.is_type );
2316
2317
2317
- if (symbol.type .id ()==ID_symbol )
2318
+ if (symbol.type .id ()==ID_symbol_type )
2318
2319
type=to_symbol_type (symbol.type );
2319
2320
else if (symbol.type .id ()==ID_struct ||
2320
2321
symbol.type .id ()==ID_incomplete_struct ||
0 commit comments