[LLVMbugs] [Bug 9124] New: Allows using-declaration to refer to scoped enumerator
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Feb 2 07:55:46 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=9124
Summary: Allows using-declaration to refer to scoped enumerator
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: schaub.johannes at googlemail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Clang is supposed to reject the below, but doesn't
enum class A { B };
int main() {
using A::B; // should be an error
}
Although the spec (N3225) doesn't say so currently (DR already filed), clang
should presumably also reject referring to an unscoped enumerator in a using
declaration:
enum A { B };
int main() {
using A::B; // presumably should be error too.
}
I think best may be to forbid the using declaration of having a nested name
specifier referring to an enumeration.
--
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