re PR c++/35078 (ICE with reference in parallel for loop)
authorJakub Jelinek <jakub@redhat.com>
Tue, 19 Feb 2008 10:14:57 +0000 (11:14 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 19 Feb 2008 10:14:57 +0000 (11:14 +0100)
commitdadb19e068ada9ee77d36be1c1bd14730d0493cd
tree011f8a2c3a3f10a1cf3a25db7411a0fe6059d700
parentde82c453322d7b852d569865af2118696cbf0271
re PR c++/35078 (ICE with reference in parallel for loop)

PR c++/35078
* parser.c (cp_parser_omp_for_loop): If DECL has REFERENCE_TYPE, don't
call cp_finish_decl.
* semantics.c (finish_omp_for): Fail if DECL doesn't have integral type
early.

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

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