https://llvm.org/bugs/show_bug.cgi?id=16676
Kaelyn Takata <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution|--- |FIXED --- Comment #2 from Kaelyn Takata <[email protected]> --- This appears to be fixed. As of r236883, the example: struct S { int i; }; struct T { S* get_s(); }; int f(S* s) { T t; return t.get_s .i; } yields: zbugs.cc:5:12: error: reference to non-static member function must be called; did you mean to call it with no arguments? return t.get_s ~~^~~~~ () zbugs.cc:6:7: error: member reference type 'S *' is a pointer; did you mean to use '->'? .i; ^ -> 2 errors generated. And the example with Nick's replacement line yields: zbugs.cc:5:30: error: reference to non-static member function must be called; did you mean to call it with no arguments? return t . get_s .i; ~~~~~~~~~~~~~~~^~~~~ () zbugs.cc:5:41: error: member reference type 'S *' is a pointer; did you mean to use '->'? return t . get_s .i; ~~~~~~~~~~~~~~~~~~~~ ^ -> 2 errors generated. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ LLVMbugs mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
