re PR c++/80141 (ICE with pragma omp declare)
authorJakub Jelinek <jakub@redhat.com>
Wed, 22 Mar 2017 18:53:47 +0000 (19:53 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 22 Mar 2017 18:53:47 +0000 (19:53 +0100)
commitf13e9cd5139762a79b41c7a355e58e36352752f6
treea471ecb06b4bad2f5c02925af84159d909cc3546
parentfd6cba40e198d145bc53502e258db560936f2226
re PR c++/80141 (ICE with pragma omp declare)

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.

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