☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr51786.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/pr51786.C
code
plain
raw
1
// PR c++/51786
2
// { dg-do compile { target c++11 } }
3
4
enum E {};
5
struct A {};
6
7
void foo() { decltype(E{}); } // { dg-error "does not declare anything" }
8
void bar() { decltype(A{}); } // { dg-error "does not declare anything" }