The following invalid code snippet triggers an ICE since GCC 4.2.0: =============================================== typedef int i __attribute__((alias("j"))); ===============================================
bug.c:1: internal compiler error: in make_decl_rtl, at varasm.c:1267 Please submit a full bug report, [etc.] Before GCC 4.2.0 we got the error: bug.c:1: error: 'i' defined both normally and as an alias A similar code snippet causes a crash in a different location: =============================================== typedef int i __attribute__((weakref("j"))); =============================================== bug.c:1: internal compiler error: in lhd_set_decl_assembler_name, at langhooks.c:160 Please submit a full bug report, [etc.] Before GCC 4.2.0 we got the error: bug.c:1: error: weak declaration of 'i' must be public bug.c:1: error: 'i' defined both normally and as an alias -- Summary: [4.2/4.3/4.4 regression] ICE with attribute alias/weakref Product: gcc Version: 4.4.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, monitored Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35434