[LLVMbugs] [Bug 18551] New: clang (incorrectly?) converts strong enum to bool when operator! is used
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Jan 19 17:37:16 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=18551
Bug ID: 18551
Summary: clang (incorrectly?) converts strong enum to bool when
operator! is used
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: andersca at icloud.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
The following code is accepted by clang:
enum class A { A };
bool f() { return !A::A; }
Both GCC and ICC reject it.
--
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/20140120/309b27ad/attachment.html>
More information about the llvm-bugs
mailing list