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