Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/concepts-pr67217.C

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" }