diff options
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r-- | gcc/cp/decl2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 0d478471925..2276bd67ace 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -1175,6 +1175,10 @@ is_late_template_attribute (tree attr, tree decl) && is_attribute_p ("omp declare simd", name)) return true; + /* An attribute pack is clearly dependent. */ + if (args && PACK_EXPANSION_P (args)) + return true; + /* If any of the arguments are dependent expressions, we can't evaluate the attribute until instantiation time. */ for (arg = args; arg; arg = TREE_CHAIN (arg)) |