Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
decltype31.C
blob: bffcf1c0d8b36a0f1b7fa25a935b1932ba435b1e [
file
] [
log
] [
blame
]
// PR c++/49921
// { dg-do compile { target c++11 } }
struct
Local
{
void
f
();
};
Local
*
l
;
void
(
Local
::*
ptr
)();
decltype
((
l
->*
ptr
))
i
;
// { dg-error "member function" }
// { dg-prune-output "invalid type in declaration" }