This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12795] New: [3.4 regression] ICE with attribute __alias__
- 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: 27 Oct 2003 21:43:41 -0000
- Subject: [Bug c++/12795] New: [3.4 regression] ICE with attribute __alias__
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12795
Summary: [3.4 regression] ICE with attribute __alias__
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Keywords: ice-on-valid-code, ice-checking
Severity: critical
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
Mainline's c++ frontend crashes with the following code snippet
(which is the same as in PR12794 ans PR 7490):
============================================================
void foo()
{
extern void bar () __attribute__ ((__alias__ ("BAR")));
bar ();
}
============================================================
Compiled with "g++ -c" I get:
PR7490.cc: In function `void foo()':
PR7490.cc:8: internal compiler error: tree check: expected namespace_decl, have
function_decl in namespace_binding, at cp/name-lookup.c:2848
Please submit a full bug report, [etc.]
According to Phil's regression hunter the regression appeared
between 2003-03-23-trunk (#253) and 2003-03-30-trunk (#254).