[LLVMbugs] [Bug 18336] New: clang asserts on enum definition in operator member prototype

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Dec 28 06:27:08 PST 2013


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

            Bug ID: 18336
           Summary: clang asserts on enum definition in operator member
                    prototype
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: pichet2000 at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

given test.cpp:

class X {
 public:
    operator enum MYENUM {
        first, second
    }   ( void );        // Error
};


clang test.cpp
will assert with:
Assertion failed: Access != AS_none && "Access specifier is AS_none inside a
rec
ord decl", file ..\..\..\..\..\tools\clang\lib\AST\DeclBase.cpp, line 696

This is invalid code but clang shouldn't assert.

-- 
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/20131228/2573c035/attachment.html>


More information about the llvm-bugs mailing list