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;
}