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++/39225] New: ICE if destructor doen't match class name


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


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