re PR c++/67511 (ICE with invalid OpenMP random access iterator)
authorJakub Jelinek <jakub@redhat.com>
Thu, 10 Sep 2015 07:30:29 +0000 (09:30 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 10 Sep 2015 07:30:29 +0000 (09:30 +0200)
commit4e4d2c41b9921ee5b8aa8e9d5874da8786e45559
tree9f7f0971620fe2800517b8675038829c87bade3d
parenta8a098acfcfc0b59ddbbec9075ffb195c3e63b3e
re PR c++/67511 (ICE with invalid OpenMP random access iterator)

PR c++/67511
* semantics.c (handle_omp_for_class_iterator): Don't wrap
error_mark_node into a NOP_EXPR to void_type_node.

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

From-SVN: r227606
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gomp/pr67511.C [new file with mode: 0644]