@@ -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 {
@@ -3032,8 +3032,8 @@ void c_typecheck_baset::typecheck_arithmetic_pointer(const exprt &expr)
30323032
30333033 typet subtype=type.subtype ();
30343034
3035- if (subtype.id ()==ID_symbol )
3036- subtype=follow (subtype);
3035+ if (subtype.id ()==ID_symbol_type )
3036+ subtype=follow (to_symbol_type ( subtype) );
30373037
30383038 if (subtype.id ()==ID_incomplete_struct)
30393039 {
0 commit comments