The following invalid code snippet triggers an ICE on mainline:

===================
void foo()
{
  namespace N {
===================

bug.cc: In function 'void foo()':
bug.cc:3: error: 'namespace' definition is not allowed here
bug.cc:3: internal compiler error: in cp_lexer_consume_token, at
cp/parser.c:638
Please submit a full bug report, [etc.]


-- 
           Summary: [4.3 regression] ICE on invalid use of namespace
           Product: gcc
           Version: 4.3.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=31745

Reply via email to