From dbaee5894cfd832a49adb912ba85699a6be98985 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Wed, 4 Apr 2018 19:57:33 +0000 Subject: [PATCH] re PR c++/80026 ([pending testcase installation] passing unresolved function pointer to variadic function template yields "too many arguments" error) 2018-04-04 Paolo Carlini PR c++/80026 * g++.dg/cpp0x/variadic174.C: New. From-SVN: r259105 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp0x/variadic174.C | 12 ++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/variadic174.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fe56c9d6804..33abe91ede8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-04-04 Paolo Carlini + + PR c++/80026 + * g++.dg/cpp0x/variadic174.C: New. + 2018-04-04 Jakub Jelinek PR inline-asm/85172 diff --git a/gcc/testsuite/g++.dg/cpp0x/variadic174.C b/gcc/testsuite/g++.dg/cpp0x/variadic174.C new file mode 100644 index 00000000000..36b76675da3 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/variadic174.C @@ -0,0 +1,12 @@ +// PR c++/80026 +// { dg-do compile { target c++11 } } + +void g(int) {} +void g(bool){} + +template +void f(S...){} + +int main(){ + f(&g); // { dg-error "too many arguments" } +} -- 2.30.2