[Bug c++/79429] [6/7 Regression] ICE in add_stmt, at cp/semantics.c:385
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 9 14:07:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79429
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Feb 9 14:06:58 2017
New Revision: 245303
URL: https://gcc.gnu.org/viewcvs?rev=245303&root=gcc&view=rev
Log:
PR c++/79429
* parser.c (cp_parser_omp_ordered): Don't check for non-pragma_stmt
non-pragma_compound context here.
(cp_parser_omp_target): Likewise.
(cp_parser_pragma): Don't call push_omp_privatization_clauses and
parsing for ordered and target omp pragmas in non-pragma_stmt
non-pragma_compound contexts.
* c-c++-common/gomp/pr79429.c: New test.
* g++.dg/gomp/pr79429.C: New test.
Added:
trunk/gcc/testsuite/c-c++-common/gomp/pr79429.c
trunk/gcc/testsuite/g++.dg/gomp/pr79429.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list