From: Marek Polacek Date: Tue, 4 Feb 2025 22:32:50 +0000 (-0500) Subject: c++: add fixed test [PR94100] X-Git-Tag: basepoints/gcc-16~2192 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f176028371c5b5339ca6d8d975d47b2347234af9;p=thirdparty%2Fgcc.git c++: add fixed test [PR94100] The recent r15-7339-g26d3424ca5d9f4 fixed this test too. PR c++/94100 gcc/testsuite/ChangeLog: * g++.dg/cpp0x/variadic188.C: New test. --- diff --git a/gcc/testsuite/g++.dg/cpp0x/variadic188.C b/gcc/testsuite/g++.dg/cpp0x/variadic188.C new file mode 100644 index 00000000000..04732a5e68f --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/variadic188.C @@ -0,0 +1,23 @@ +// PR c++/94100 +// { dg-do compile { target c++11 } } + +template struct ValListWithTypes { + template struct WithVals { + using TypeList = ValListWithTypes; + }; +}; + +template +struct Widget; + +template +struct Widget> { + template struct Impl {}; +}; + +template +template +struct Widget>::Impl< + typename ValListWithTypes::template WithVals> {}; + +int main(void) { Widget::WithVals<0>>::Impl<> impl; }