This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18782] New: [4.0 regression] ICE on invalid pointer-to-member declaration
- 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: 2 Dec 2004 13:12:58 -0000
- Subject: [Bug c++/18782] New: [4.0 regression] ICE on invalid pointer-to-member declaration
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following invalid code snippet causes an ICE on mainline:
=====================
namespace A {}
int A::* p;
=====================
bug.cc:2: internal compiler error: tree check: expected class 'type', have
'declaration' (namespace_decl) in build_offset_type, at tree.c:4591
Please submit a full bug report, [etc.]
The regression was introduced in June:
: Search converges between 2004-06-22-trunk (#470) and 2004-06-24-trunk (#471).
--
Summary: [4.0 regression] ICE on invalid pointer-to-member
declaration
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, monitored
Severity: normal
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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18782