Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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" }