@@ -88,9 +88,9 @@ bool c_typecheck_baset::gcc_types_compatible_p(
88
88
// read
89
89
// http://gcc.gnu.org/onlinedocs/gcc-3.3.6/gcc/Other-Builtins.html
90
90
91
- if (type1.id ()==ID_symbol )
91
+ if (type1.id ()==ID_symbol_type )
92
92
return gcc_types_compatible_p (follow (type1), type2);
93
- else if (type2.id ()==ID_symbol )
93
+ else if (type2.id ()==ID_symbol_type )
94
94
return gcc_types_compatible_p (type1, follow (type2));
95
95
96
96
// check qualifiers first
@@ -523,8 +523,8 @@ void c_typecheck_baset::typecheck_expr_builtin_offsetof(exprt &expr)
523
523
524
524
forall_operands (m_it, member)
525
525
{
526
- if (type.id ()==ID_symbol )
527
- type=follow (type);
526
+ if (type.id ()==ID_symbol_type )
527
+ type=follow (to_symbol_type ( type) );
528
528
529
529
if (m_it->id ()==ID_member)
530
530
{
@@ -2956,8 +2956,8 @@ void c_typecheck_baset::typecheck_arithmetic_pointer(const exprt &expr)
2956
2956
2957
2957
typet subtype=type.subtype ();
2958
2958
2959
- if (subtype.id ()==ID_symbol )
2960
- subtype=follow (subtype);
2959
+ if (subtype.id ()==ID_symbol_type )
2960
+ subtype=follow (to_symbol_type ( subtype) );
2961
2961
2962
2962
if (subtype.id ()==ID_incomplete_struct)
2963
2963
{
0 commit comments