Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr51786.C
blob: 69b7441588feedbb7d54e031be7c11b7161582c9 [
file
] [
log
] [
blame
]
// PR c++/51786
// { dg-do compile { target c++11 } }
enum
E
{};
struct
A
{};
void
foo
()
{
decltype
(
E
{});
}
// { dg-error "does not declare anything" }
void
bar
()
{
decltype
(
A
{});
}
// { dg-error "does not declare anything" }