[Bug c++/53003] New: Internal compiler error on short testcase
rippey.e at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Apr 16 06:43:00 GMT 2012
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: unassigned@gcc.gnu.org
ReportedBy: rippey.e@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.
More information about the Gcc-bugs
mailing list