[Bug c++/79429] New: ICE in add_stmt, at cp/semantics.c:385
gerhard.steinmetz.fortran@t-online.de
gcc-bugzilla@gcc.gnu.org
Wed Feb 8 17:18:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79429
Bug ID: 79429
Summary: ICE in add_stmt, at cp/semantics.c:385
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: gerhard.steinmetz.fortran@t-online.de
Target Milestone: ---
Affects versions 6 and 7 (configured with --enable-checking=yes).
Issue similar to that from pr79428.
$ cat z1.cc
#pragma omp target
$ cat z2.cc
#pragma omp ordered
$ g++-5 -fopenmp -c z1.cc
z1.cc:1:19: error: expected declaration specifiers before end of line
$
$
$ g++-7-20170205 -fopenmp -c z1.cc
z1.cc:1:19: error: expected declaration specifiers before end of line
#pragma omp target
^
z1.cc:1:19: internal compiler error: in add_stmt, at cp/semantics.c:385
0x8213ab add_stmt(tree_node*)
../../gcc/cp/semantics.c:385
0x834fdb pop_omp_privatization_clauses(tree_node*)
../../gcc/cp/semantics.c:7424
0x79a9ac cp_parser_pragma
../../gcc/cp/parser.c:38256
0x7c6b9b cp_parser_declaration_seq_opt
../../gcc/cp/parser.c:12362
0x7c6e58 cp_parser_translation_unit
../../gcc/cp/parser.c:4366
0x7c6e58 c_parse_file()
../../gcc/cp/parser.c:38382
0x9292b2 c_common_parse_file()
../../gcc/c-family/c-opts.c:1107
More information about the Gcc-bugs
mailing list