Debian Codegraph @

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

raw
1 // PR c++/100632
2 // { dg-do compile { target c++20 } }
3
4 struct B { const int* p; };
5 template<B> void f() {}
6
7 struct Nested { union { int k; }; } nested;
8
9 template void f<B{&nested.k}>();