blob: ae64fac81c23b61f7716e769a2da19aebebf670e [file] [log] [blame]
// PR c++/92965
// { dg-do compile { target c++20 } }
template<int>
class TS {
int x; // { dg-bogus "is not public" }
public:
constexpr TS(int) {}
};
TS(int) -> TS<1>;
template<TS> void foo() {}
template<int> void foo() {}
void test() { foo<2>(); }