[LLVMbugs] [Bug 15133] New: poor diagnostic for extra : after case label

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jan 31 23:16:19 PST 2013


             Bug #: 15133
           Summary: poor diagnostic for extra : after case label
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: richard-llvm at metafoo.co.uk
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Inside a switch:

  case Expr::LV_IncompleteVoidType::

Clang said:

lib/Sema/SemaExpr.cpp:8139:14: error: no member named 'LV_IncompleteVoidType'
in 'clang::Expr'
  case Expr::LV_IncompleteVoidType::
lib/Sema/SemaExpr.cpp:8140:5: error: expected unqualified-id

The first diagnostic is flat-out wrong.

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