You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// cxx98-17-error@-1 {{use of function template name with no prior declaration in function call with explicit template arguments is a C++20 extension}}
646
646
A::f<3>(b);
647
647
// expected-error@-1 {{no matching function for call to 'f'}}
648
-
//expected-note@#cwg241-A-f {{candidate function template not viable: requires 0 arguments, but 1 was provided}}
648
+
// expected-note@#cwg241-A-f {{candidate function template not viable: requires 0 arguments, but 1 was provided}}
649
649
A::g<3>(b);
650
650
C::f<3>(b);
651
651
// expected-error@-1 {{no matching function for call to 'f'}}
// cxx98-note@#cwg354-both-int-ptr {{template parameter is declared here}}
985
+
// cxx98-note@#cwg354-both-int-ptr {{candidate template ignored: invalid explicitly-specified argument: could not convert '(int *)0' from 'int *' to 'int'}}
986
+
// cxx98-note@#cwg354-both-int {{template parameter is declared here}}
987
+
// cxx98-note@#cwg354-both-int {{candidate template ignored: invalid explicitly-specified argument: could not convert '(int *)0' from 'int *' to 'int'}}
// expected-note@#f-bool-int {{could not convert '&S::operator int' from 'int (S::*)() const' to 'bool'}}
109
+
// expected-note@#f-bool-int {{template parameter is declared here}}
110
+
// expected-note@#f-bool-int {{candidate template ignored: invalid explicitly-specified argument: could not convert '&S::operator int' from 'int (S::*)() const' to 'bool'}}
111
111
template int f<&S::operatorint>(); // expected-error {{does not refer to a function template}}
// expected-note@#get-int-typename {{candidate template ignored: invalid explicitly-specified argument: expected constant of type 'int' but got type 'int'}}
0 commit comments