Debian Codegraph @

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

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" }