This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16971] New: [3.5 regression] ICE on duplicate definition
- 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: 10 Aug 2004 17:12:09 -0000
- Subject: [Bug c++/16971] New: [3.5 regression] ICE on duplicate definition
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
On mainline the following code snippet causes a compiler crash:
===========================
namespace N
{
int i;
int i;
}
===========================
bug.cc:8: error: redefinition of `int N::i'
bug.cc:7: error: `int N::i' previously declared here
bug.cc:8: internal compiler error: tree check: expected class 'd', have 'x'
(error_mark) in cp_parser_init_declarator, at cp/parser.c:10717
Please submit a full bug report, [etc.]
--
Summary: [3.5 regression] ICE on duplicate definition
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, monitored, ice-
checking
Severity: minor
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
OtherBugsDependingO 12608
nThis:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16971