Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
nontype-class27.C
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
>();
}