From 8797dd71e710120158a191ace6dbe769b2485cf0 Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Tue, 18 Jun 2019 20:55:46 +0000 Subject: [PATCH] re PR c++/71548 (Invalid declaration involving template template param causes crash) PR c++/71548 * g++.dg/cpp0x/variadic177.C: New test. From-SVN: r272438 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp0x/variadic177.C | 12 ++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/variadic177.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cbbaacdeac6..a348251a930 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-06-18 Marek Polacek + + PR c++/71548 + * g++.dg/cpp0x/variadic177.C: New test. + 2019-06-18 Richard Sandiford * gcc.target/aarch64/sve/struct_vect_18.c: Allow branches to diff --git a/gcc/testsuite/g++.dg/cpp0x/variadic177.C b/gcc/testsuite/g++.dg/cpp0x/variadic177.C new file mode 100644 index 00000000000..96736a0ac0a --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/variadic177.C @@ -0,0 +1,12 @@ +// PR c++/71548 +// { dg-do compile { target c++11 } } + +template class fl {}; +template class = fl> +struct S {}; +template +void f(S ) {} +void lol() { + S<> s; + f(s); // { dg-error "no matching function for call to" } +} -- 2.30.2