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

            Bug ID: 114727
           Summary: ICE with c23 with aligned attribute and .-g
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: muecker at gwdg dot de
  Target Milestone: ---

The following ICEs with -std=c23, -g and checking:

#define Y [[gnu::aligned(128)]]
extern struct Y foo { int x; } x; 
struct foo { int x; };


We should probably reject redefinition by having
the following in tagged_types_tu_compatible_p.

if (TYPE_USER_ALIGN (t1) != TYPE_USER_ALIGN (t2))
     data->different_types_p = true;

Reply via email to