http://llvm.org/bugs/show_bug.cgi?id=12025
Bug #: 12025
Summary: fix-it for '->' versus '.'
Product: clang
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
class B {
public:
int a;
int func() { return a; }
};
static B b;
int fixthis() {
B *_b = &b;
return _b.a + _b.func() + b->a + b->func();
}
clang suggests a fixit for the first two expressions ("maybe you meant to use
'->'?"), but not the last two. It looks like
diag::err_typecheck_member_reference_suggestion is used in a few places, but
for some reason it only catches it in one direction.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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