File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -43,18 +43,18 @@ void cpp_typecheckt::typecheck_compound_bases(struct_typet &type)
43
43
// elaborate any class template instances given as bases
44
44
elaborate_class_template (base_symbol_expr.type ());
45
45
46
- if (base_symbol_expr.type ().id () == ID_struct_tag )
47
- base_symbol_expr.type ().id (ID_symbol_type );
46
+ if (base_symbol_expr.type ().id () == ID_symbol_type )
47
+ base_symbol_expr.type ().id (ID_struct_tag );
48
48
49
- if (base_symbol_expr.type ().id () != ID_symbol_type )
49
+ if (base_symbol_expr.type ().id () != ID_struct_tag )
50
50
{
51
51
error ().source_location =name.source_location ();
52
52
error () << " expected type symbol as struct/class base" << eom;
53
53
throw 0 ;
54
54
}
55
55
56
56
const symbolt &base_symbol =
57
- lookup (to_symbol_type (base_symbol_expr.type ()));
57
+ lookup (to_struct_tag_type (base_symbol_expr.type ()));
58
58
59
59
if (base_symbol.type .id ()==ID_incomplete_struct)
60
60
{
You can’t perform that action at this time.
0 commit comments