https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80141
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue May 30 08:17:54 2017 New Revision: 248663 URL: https://gcc.gnu.org/viewcvs?rev=248663&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-5-branch/gcc/testsuite/g++.dg/gomp/pr80141.C Modified: branches/gcc-5-branch/gcc/cp/ChangeLog branches/gcc-5-branch/gcc/cp/semantics.c branches/gcc-5-branch/gcc/testsuite/ChangeLog