https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77578
ktkachov at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Known to work| |6.2.1, 7.0
Keywords| |ice-on-invalid-code
Last reconfirmed| |2016-09-13
CC| |ktkachov at gcc dot gnu.org
Ever confirmed|0 |1
Summary|Compiler crashes with |[5 Regression] Compiler
|segmentation fault |crashes with segmentation
| |fault
Known to fail| |5.4.1
--- Comment #2 from ktkachov at gcc dot gnu.org ---
Confirmed on 5.4.1.
On trunk and 6 we get a normal error:
ice.cpp: In static member function ‘static void GridTraverser<Grid<Device>
>::processEntities(GridTraverser<Grid<Device> >::CoordinatesType,
GridTraverser<Grid<Device> >::CoordinatesType)’:
ice.cpp:29:24: error: expected ‘)’ before ‘.’ token
entity.getCoordinates().y()++ )
On 5.4.1 the ICE backtrace is:
ice.cpp:28:56: internal compiler error: Segmentation fault
entity.getCoordinates().y() <= end.y();
^
0xca159f crash_signal
$SRC/gcc/toplev.c:383
0x6dc1e2 cp_parser_omp_for_loop
$SRC/gcc/cp/parser.c:30616
0x6fd575 cp_parser_omp_for
$SRC/gcc/cp/parser.c:30861
0x70b88f cp_parser_omp_parallel
$SRC/gcc/cp/parser.c:31040
0x6de5c5 cp_parser_omp_construct
$SRC/gcc/cp/parser.c:32597
0x6e189a cp_parser_pragma
$SRC/gcc/cp/parser.c:33141
0x70526c cp_parser_statement
$SRC/gcc/cp/parser.c:9808
0x705e4e cp_parser_statement_seq_opt
$SRC/gcc/cp/parser.c:10115
0x705f96 cp_parser_compound_statement
$SRC/gcc/cp/parser.c:10069
0x70524d cp_parser_statement
$SRC/gcc/cp/parser.c:9797
0x705e4e cp_parser_statement_seq_opt
$SRC/gcc/cp/parser.c:10115
0x705f96 cp_parser_compound_statement
$SRC/gcc/cp/parser.c:10069
0x706203 cp_parser_function_body
$SRC/gcc/cp/parser.c:19229
0x706203 cp_parser_ctor_initializer_opt_and_function_body
$SRC/gcc/cp/parser.c:19265
0x7070e0 cp_parser_function_definition_after_declarator
$SRC/gcc/cp/parser.c:23525
0x70a7d0 cp_parser_late_parsing_for_member
$SRC/gcc/cp/parser.c:24244
0x6e3034 cp_parser_class_specifier_1
$SRC/gcc/cp/parser.c:20078
0x6e3034 cp_parser_class_specifier
$SRC/gcc/cp/parser.c:20108
0x6e3034 cp_parser_type_specifier
$SRC/gcc/cp/parser.c:14727
0x6f6ec9 cp_parser_decl_specifier_seq
$SRC/gcc/cp/parser.c:11958
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.