[LLVMbugs] [Bug 16900] New: negation should not be possible with enum class
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Aug 15 09:33:53 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16900
Bug ID: 16900
Summary: negation should not be possible with enum class
Product: clang
Version: 3.3
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: 1zeeky at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 11040
--> http://llvm.org/bugs/attachment.cgi?id=11040&action=edit
testcase
Since enum classes cannot be implicitly converted to int, I don't think
negation (unary operator-) should work on a value of an enum class type.
The attached testcase should fail to compile (but does not with clang++ 3.3).
--
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/20130815/9462fa14/attachment.html>
More information about the llvm-bugs
mailing list