[LLVMbugs] [Bug 16394] New: Clang incorrctly accepts increment operations on enums

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jun 20 15:06:19 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=16394

            Bug ID: 16394
           Summary: Clang incorrctly accepts increment operations on enums
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nicolasweber at gmx.de
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

clang (as of today's trunk) accepts

  enum A {a, b}; void f(A a) { a++; }

That should be rejected (and is, by msvs and gcc).

-- 
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/20130620/99fda054/attachment.html>


More information about the llvm-bugs mailing list