PR c++/81154
commitf4678453f192003cc462ad892a26fd446b135095
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Jun 2017 18:30:32 +0000 (21 18:30 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Jun 2017 18:30:32 +0000 (21 18:30 +0000)
treed5e64a08689456e01c506c14ba783b37db0d3621
parentf5aef4e2dd18cb8967b3e93736c5fad3b7a0b3d6
PR c++/81154
* semantics.c (handle_omp_array_sections_1, finish_omp_clauses):
Complain about t not being a variable if t is OVERLOAD even
when processing_template_decl.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@249467 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gomp/pr81154.C [new file with mode: 0644]