☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
noexcept89.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/noexcept89.C
code
plain
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
};