From: Marek Polacek Date: Tue, 31 Jan 2023 18:27:21 +0000 (-0500) Subject: c++: Add fixed test [PR102870] X-Git-Tag: upstream/13.1.0~1636 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b2ec2504af77b35e748067eeb846821d12a6b6b4;p=platform%2Fupstream%2Fgcc.git c++: Add fixed test [PR102870] This was fixed by r12-7857: now we properly reject instead of crashing. PR c++/102870 gcc/testsuite/ChangeLog: * g++.dg/cpp0x/variadic184.C: New test. --- diff --git a/gcc/testsuite/g++.dg/cpp0x/variadic184.C b/gcc/testsuite/g++.dg/cpp0x/variadic184.C new file mode 100644 index 0000000..458357a --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/variadic184.C @@ -0,0 +1,12 @@ +// PR c++/102870 +// { dg-do compile { target c++11 } } + +template struct integer_sequence; +template +using make_integer_sequence = integer_sequence<_Tp, __integer_pack(_Num)...>; +template +using make_index_sequence = make_integer_sequence; +template struct Tuple; +template using type = Tuple...>; +template void f() { Tuple>{}; } // { dg-error "parameter packs not expanded" } +int main() { f(); }