Debian Codegraph @

gcc/testsuite/g++.dg/template/pr64100.C

raw
1 // { dg-do compile { target c++11 } }
2
3 template<typename> struct foo // { dg-message "note" }
4 {
5 static_assert(noexcept(((foo *)1)->~foo()), ""); // { dg-error "incomplete type" }
6 };
7
8 template class foo<int>;
9