https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80141
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri May 5 21:43:38 2017 New Revision: 247689 URL: https://gcc.gnu.org/viewcvs?rev=247689&root=gcc&view=rev Log: Backported from mainline 2017-03-22 Jakub Jelinek <ja...@redhat.com> 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. Added: branches/gcc-6-branch/gcc/testsuite/g++.dg/gomp/pr80141.C Modified: branches/gcc-6-branch/gcc/cp/ChangeLog branches/gcc-6-branch/gcc/cp/semantics.c branches/gcc-6-branch/gcc/testsuite/ChangeLog