re PR c++/92504 (ICE on gcc-9 -fopenmp: internal compiler error: tree check: expected...
authorJakub Jelinek <jakub@redhat.com>
Tue, 19 Nov 2019 08:52:31 +0000 (09:52 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 19 Nov 2019 08:52:31 +0000 (09:52 +0100)
commit863bbe2b5fa075ef661be94845035644905d8237
treebe8e1d429edc71f778e55c6a7c07f954c36ee46a
parentb51d4ebc38cf4852b9c7746647526097f5bd00e9
re PR c++/92504 (ICE on gcc-9 -fopenmp: internal compiler error: tree check: expected tree that contains 'decl common' structure, have 'baselink' in get_inner_reference, at expr.c:7238)

PR c++/92504
* semantics.c (handle_omp_for_class_iterator): Don't call
cp_fully_fold on cond.

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

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