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