@@ -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
{
@@ -3032,8 +3032,8 @@ void c_typecheck_baset::typecheck_arithmetic_pointer(const exprt &expr)
3032
3032
3033
3033
typet subtype=type.subtype ();
3034
3034
3035
- if (subtype.id ()==ID_symbol )
3036
- subtype=follow (subtype);
3035
+ if (subtype.id ()==ID_symbol_type )
3036
+ subtype=follow (to_symbol_type ( subtype) );
3037
3037
3038
3038
if (subtype.id ()==ID_incomplete_struct)
3039
3039
{
0 commit comments