This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/16971] New: [3.5 regression] ICE on duplicate definition


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]