[LLVMbugs] [Bug 10460] New: poor error recovery from unqualified class enum
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Jul 23 17:42:53 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10460
Summary: poor error recovery from unqualified class enum
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: clattner at apple.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Consider this:
$ cat t.cc
enum class foo_t { abcdef, b, c };
foo_t x = abcdef;
namespace bar {
enum bar_t { abcdef, b, c };
}
bar::bar_t y = abcdef;
$ clang t.cc -std=c++0x
t.cc:4:11: error: use of undeclared identifier 'abcdef'
foo_t x = abcdef;
^
t.cc:10:16: error: use of undeclared identifier 'abcdef'
bar::bar_t y = abcdef;
^
It would be nice to say "did you mean foo_t::abcdef" by diving into the
namespace/enum class.
--
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.
More information about the llvm-bugs
mailing list