@@ -88,9 +88,9 @@ bool c_typecheck_baset::gcc_types_compatible_p(
8888 // read
8989 // http://gcc.gnu.org/onlinedocs/gcc-3.3.6/gcc/Other-Builtins.html
9090
91- if (type1.id ()==ID_symbol )
91+ if (type1.id ()==ID_symbol_type )
9292 return gcc_types_compatible_p (follow (type1), type2);
93- else if (type2.id ()==ID_symbol )
93+ else if (type2.id ()==ID_symbol_type )
9494 return gcc_types_compatible_p (type1, follow (type2));
9595
9696 // check qualifiers first
@@ -523,8 +523,8 @@ void c_typecheck_baset::typecheck_expr_builtin_offsetof(exprt &expr)
523523
524524 forall_operands (m_it, member)
525525 {
526- if (type.id ()==ID_symbol )
527- type=follow (type);
526+ if (type.id ()==ID_symbol_type )
527+ type=follow (to_symbol_type ( type) );
528528
529529 if (m_it->id ()==ID_member)
530530 {
@@ -2956,8 +2956,8 @@ void c_typecheck_baset::typecheck_arithmetic_pointer(const exprt &expr)
29562956
29572957 typet subtype=type.subtype ();
29582958
2959- if (subtype.id ()==ID_symbol )
2960- subtype=follow (subtype);
2959+ if (subtype.id ()==ID_symbol_type )
2960+ subtype=follow (to_symbol_type ( subtype) );
29612961
29622962 if (subtype.id ()==ID_incomplete_struct)
29632963 {
0 commit comments