================
@@ -162,6 +162,7 @@ template void HiddenPack<int, float>();
template<typename ...Ts> void HiddenPackInvalid() {
Int<Ts>(); // expected-error {{unexpanded}}
Int<Ts>{}; // expected-error {{unexpanded}}
+ Int<Ts>({}); // expected-error {{unexpanded}} expected-error {{cannot
initialize non-class type}}
----------------
hbatagelo wrote:
For `Int<Ts>()`, the init sequence is well-formed. The result is a
`CXXScalarValueInitExpr` instead of a `RecoveryExpr`. The default hook for
`CXXScalarValueInitExpr` walks the `TypeSourceInfo` that contains the written
type (`Int<Ts>`), so the collector finds the pack.
https://github.com/llvm/llvm-project/pull/236838
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits