Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/auto-fn30.C

raw
1 // PR c++/67835
2 // { dg-do compile { target c++14 } }
3
4 template<class Tag, class T>
5 auto g(Tag tag, T x) {
6 return f(tag, x);
7 }
8
9 namespace abc {
10 struct tag {};
11
12 struct A {};
13
14 template<class T>
15 auto f(tag, T x) { return x; }
16 }
17
18 int main() {
19 g(abc::tag(), abc::A());
20 return 0;
21 }