Sign in
gnu
/
gcc
/
7ff47281ce4f3699185b06a3430968eac2a5b0c6
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
concepts-pr67217.C
blob: 35618aed5d359d7780ada2b4ce41e07d04dc42fc [
file
] [
log
] [
blame
]
// PR c++/67217
// { dg-do compile { target c++2a } }
template
<
class
T
>
requires __is_same_as
(
T
,
double
)
union
A
{};
int
main
()
{
A
<int>
{};
}
// { dg-error "template constraint failure" }