☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
concepts-pr67217.C
☽
☼
gcc/testsuite/g++.dg/cpp2a/concepts-pr67217.C
code
plain
raw
1
// PR c++/67217
2
// { dg-do compile { target c++20 } }
3
4
template <class T>
5
requires __is_same_as(T, double)
6
union A {};
7
8
int main() { A<int>{}; } // { dg-error "template constraint failure" }