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