From: Paolo Carlini Date: Wed, 4 Apr 2018 19:57:33 +0000 (+0000) Subject: re PR c++/80026 ([pending testcase installation] passing unresolved function pointer... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dbaee5894cfd832a49adb912ba85699a6be98985;p=gcc.git 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 --- 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" } +}