Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
diagnostic
/
pr77777.C
blob: 0e7676d5819481aaa0ea28e4859090085514c26d [
file
] [
log
] [
blame
]
// PR c++/77777
// { dg-do compile }
struct
X
{
int
f
();
};
void
g
(
int
);
int
main
()
{
X x
;
g
(
x
.
f
// { dg-error "invalid use of non-static member function" }
);
}