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: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs