PR c++/80141
commitd4d3d389c2e3f132c6294e264d5312272ee56b87
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Mar 2017 18:53:47 +0000 (22 18:53 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Mar 2017 18:53:47 +0000 (22 18:53 +0000)
treea471ecb06b4bad2f5c02925af84159d909cc3546
parent97e19e5a03eee006ddb67d6be9f4f5fecd277ecf
PR c++/80141
* semantics.c (finish_omp_clause) <case OMP_CLAUSE_SIMDLEN,
case OMP_CLAUSE_ALIGNED>: Call maybe_constant_value only when not
processing_template_decl.

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

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