This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/35330] New: [4.1/4.2/4.3/4.4 regression] ICE with invalid pragma weak
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Feb 2008 19:22:36 -0000
- Subject: [Bug c/35330] New: [4.1/4.2/4.3/4.4 regression] ICE with invalid pragma weak
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following invalid code snippet triggers an ICE since GCC 3.1.1:
====================================================
#pragma weak int = foo
====================================================
<built-in>:0: error: weak declaration of 'int' must be public
bug.c:1: internal compiler error: in make_decl_rtl, at varasm.c:1267
Please submit a full bug report, [etc.]
Also happens with the C++ frontend.
--
Summary: [4.1/4.2/4.3/4.4 regression] ICE with invalid pragma
weak
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, 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=35330