[LLVMbugs] [Bug 18651] New: Poor typo correction with anonymous struct members
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jan 28 21:10:34 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=18651
Bug ID: 18651
Summary: Poor typo correction with anonymous struct members
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: rtrieu at google.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
$ cat test.cc
struct {
int x;
} a, b;
int y = x;
$ clang test.cc -fsyntax-only
test.cc:5:9: error: use of undeclared identifier 'x'; did you mean '<anonymous
struct at test.cc:1:1>::x'?
int y = x;
^
<anonymous struct at test.cc:1:1>::x
test.cc:2:7: note: '<anonymous struct at test.cc:1:1>::x' declared here
int x;
^
test.cc:5:9: error: invalid use of non-static data member 'x'
int y = x;
^
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/20140129/71cd9890/attachment.html>
More information about the llvm-bugs
mailing list