Sign in
android
/
toolchain
/
gcc
/
3f73d6ef904
/
.
/
gcc-4.6
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
decltype31.C
blob: b9817eb9e1305ede87924e6c921c27f1f88c8507 [
file
] [
log
] [
blame
]
// PR c++/49921
// { dg-options -std=c++0x }
struct
Local
{
void
f
();
};
Local
*
l
;
void
(
Local
::*
ptr
)();
decltype
((
l
->*
ptr
))
i
;
// { dg-error "member function" }
// { dg-prune-output "invalid type in declaration" }