Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/noexcept89.C

raw
1 // PR c++/117106
2 // { dg-do compile { target c++11 } }
3
4 struct A {
5 int x;
6 template<class>
7 void foo() noexcept(noexcept(x)) {}
8 auto bar() -> decltype(foo<int>()) {} // { dg-error "not available until end of class" }
9 };