Debian Codegraph @

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

raw
1 // { dg-do compile { target c++20 } }
2
3 template<class T>
4 void f() {
5 g<int>(T{}); // { dg-error "argument-dependent lookup" }
6 // { dg-bogus "no match" "" { target *-*-* } .-1 }
7 }
8
9 template<class T>
10 void g(int); // { dg-message "declared here, later" }
11
12 template void f<int>();