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