[LLVMbugs] [Bug 18044] New: Crash with "unexpected context" with enum class as (invalid) name qualifier

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Nov 24 04:14:53 PST 2013


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

            Bug ID: 18044
           Summary: Crash with "unexpected context" with enum class as
                    (invalid) name qualifier
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jonathan.sauer at gmx.de
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 11599
  --> http://llvm.org/bugs/attachment.cgi?id=11599&action=edit
Complete log of clang run

The following (incorrect) code crashes clang r195016:

enum class Enum {};

unsigned int Enum::ENUMS;


This results in (full log attached):

% ~/LLVM/build/Release+Asserts/bin/clang -c -std=c++1y -c clang.cpp 
Unexpected context


Removing "class" from the enum results in the (expected) error message: "error:
no member named 'ENUMS' in 'Enum'"

-- 
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/20131124/b1d4acf8/attachment.html>


More information about the llvm-bugs mailing list