[Bug c/89933] [7/8/9 Regression] ICE in merge_decls, at c/c-decl.c:2517

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 2 19:11:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89933

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-04-02
                 CC|                            |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
The ICE was introduced in r237137:

r237137 | mpolacek | 2016-06-06 11:50:23 -0400 (Mon, 06 Jun 2016) | 8 lines

        * c-typeck.c (comptypes_internal): Handle comparisons of
        INTEGER_TYPE, FIXED_POINT_TYPE, and REAL_TYPE nodes.  Don't check
        TYPE_REF_CAN_ALIAS_ALL.

Before then GCC failed to accept the code:

t.c:2:22: error: conflicting types for ‘a’
 typedef unsigned int a __attribute__ ((__aligned__(8), __may_alias__));
                      ^
t.c:1:22: note: previous declaration of ‘a’ was here
 typedef unsigned int a __attribute__ ((__aligned__(8), __may_alias__));
                      ^


More information about the Gcc-bugs mailing list