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++/23440] New: [4.0/4.1 regression] "void f(){for" crashes the C++ frontend


Since GCC 4.0.0 the C++ frontend ICEs on code like

  void foo() { for

But unlike PR23439 the C++ parser also ICEs on

  void foo() { for (;;)
or
  void foo() { if ()
or
  void foo() { while ()

-- 
           Summary: [4.0/4.1 regression] "void f(){for" crashes the C++
                    frontend
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: belyshev at depni dot sinp dot msu dot ru,gcc-bugs at
                    gcc dot gnu dot org
 BugsThisDependsOn: 23439


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23440


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