1 // RUN: %clang_cc1 -verify %s
3 // FIXME: We could in principle support cases like this (particularly, cases
4 // where the statement-expression contains no labels).
5 template <typename
... T
> void f1() {
8 T(); // expected-error {{unexpanded parameter pack}}
9 }) ... // expected-error {{does not contain any unexpanded parameter packs}}
13 // FIXME: The error for this isn't ideal; it'd be preferable to say that pack
14 // expansion of a statement expression is not permitted.
15 template <typename
... T
> void f2() {
20 T t
; // expected-error {{unexpanded parameter pack}}
28 template <typename
... T
> void f3() {
33 T t
; // OK, expanded within compound statement