Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/fn-template18.C

raw
1 // PR c++/88184
2 // { dg-do compile }
3 // { dg-options "-std=c++2a -fchecking=2" }
4
5 namespace A
6 {
7 void f ();
8 void f (int);
9 void f (int, int);
10 }
11
12 using A::f;
13
14 template <typename T> void g ()
15 {
16 f<T> (); // { dg-error "no matching function for call" }
17 }
18
19 void
20 fn ()
21 {
22 g<int>();
23 }