re PR c++/84557 (ICE with invalid firstprivate variable)
authorJakub Jelinek <jakub@redhat.com>
Mon, 26 Feb 2018 19:51:05 +0000 (20:51 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 26 Feb 2018 19:51:05 +0000 (20:51 +0100)
commit2bb03eb72f5b55edc6deadc2e0320a046d046fa8
treed49091ace6d393224a941bc7d7385d14825300cb
parente586831971cda2da0e25e21a81eeeea60514a89e
re PR c++/84557 (ICE with invalid firstprivate variable)

PR c++/84557
* parser.c (cp_parser_omp_var_list_no_open): Only call
cp_parser_lookup_name_simple on names satisfying identifier_p.
(cp_parser_oacc_routine): Likewise.

* g++.dg/gomp/pr84557.C: New test.

From-SVN: r258011
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gomp/pr84557.C [new file with mode: 0644]