Commit dbaee589 by Paolo Carlini Committed by Paolo Carlini

re PR c++/80026 ([pending testcase installation] passing unresolved function…

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  <paolo.carlini@oracle.com>

	PR c++/80026
	* g++.dg/cpp0x/variadic174.C: New.

From-SVN: r259105
parent 2ff7172a
2018-04-04 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/80026
* g++.dg/cpp0x/variadic174.C: New.
2018-04-04 Jakub Jelinek <jakub@redhat.com> 2018-04-04 Jakub Jelinek <jakub@redhat.com>
PR inline-asm/85172 PR inline-asm/85172
......
// PR c++/80026
// { dg-do compile { target c++11 } }
void g(int) {}
void g(bool){}
template <class...S>
void f(S...){}
int main(){
f(&g); // { dg-error "too many arguments" }
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment