If the constructor of a class does not match the class name, the compiler dies
with a segfault.

I'll attach an example program.
running 

> g++ test.cc
test.cc:6: internal compiler error: Segmentation fault

will already trigger the bug.

The source code is not valid code, but with previous versions (e.g. 4.2) I got
a meaningful error message:

> g++-4.2 test.cc 
test.cc:6: error: expected class-name before ‘(’ token

Cheers
  Christian


-- 
           Summary: ICE if destructor doen't match class name
           Product: gcc
           Version: 4.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: christi at uni-hd dot de
 GCC build triplet: i386-pc-linux-gnu
  GCC host triplet: i386-pc-linux-gnu
GCC target triplet: i386-pc-linux-gnu


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

Reply via email to