[LLVMbugs] [Bug 16676] Crash-on-invalid with a fragile combination of typo corrections and whitespace
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri May 8 11:06:40 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=16676
Kaelyn Takata <rikka at google.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |rikka at google.com
Resolution|--- |FIXED
--- Comment #2 from Kaelyn Takata <rikka at google.com> ---
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150508/0eb95ce6/attachment.html>
More information about the llvm-bugs
mailing list