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

Reply via email to