Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/nontype-complex1.C

raw
1 // PR c++/100634
2 // { dg-do compile { target c++20 } }
3 // { dg-options "" }
4
5 // We could support _Complex template arguments, but better I think to make
6 // people use a standard type instead.
7 template<_Complex int> struct ComplexInt {}; // { dg-error "not a valid type" }
8 using CI = ComplexInt<1 + 3i>;