Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
parse
/
error33.C
blob: 61b0cc3f2dcc20e2cf804bc1a18ed3ac1187a06c [
file
] [
log
] [
blame
]
/* PR c++/37556 */
/* { dg-do compile } */
struct
A
{
void
foo
();
};
typedef
void
(
A
::
T
)();
/* { dg-error "15:typedef name may not be a nested" } */
void
bar
(
T
);
void
baz
()
{
bar
(&
A
::
foo
);
}