Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
parse
/
operator8.C
blob: c5ee3eb934abf5ce49b7f8941fa41e66c1baebd6 [
file
] [
log
] [
blame
]
// PR c++/91521 - wrong error with operator->.
// { dg-do compile }
struct
foo
{
int
bar
()
{
return
0
;
}
foo
*
operator
->()
{
return
this
;
}
};
int
main
()
{
int
pt
(
foo
()->
bar
());
return
pt
;
}