Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/concepts-using1.C

raw
1 // PR c++/79591
2 // { dg-do compile { target c++20 } }
3
4 template <class> concept True = true;
5
6 // Fine.
7 namespace X {
8 void f(auto) {}
9 void f(True auto) {}
10 }
11
12 void f(auto) {}
13 namespace Y {
14 void f(True auto) {}
15 using ::f;
16 // error: 'template<class auto:3> void f(auto:3)' conflicts with a previous declaration
17 }