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

             Bug #: 53003
           Summary: Internal compiler error on short testcase
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: rippe...@gmail.com


When a file containing only "struct A{ void a{} return b" is run it produces:

bad.cpp:1:18: internal compiler error: Segmentation fault
 struct A{ void a{} return b
                  ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

This is with SVN version 186473 on i686 GNU/Linux, with no configure options. 
No special command line options are required - this is triggered by "g++
bad.cpp".  

The code snippet is obviously invalid C++.  The snippet was arrived at by
taking a program that was valid C++ but also triggered internal compiler
errors, and reducing its size as much as possible without regard for validity.

Reply via email to