[LLVMbugs] [Bug 18234] New: [C++98]Enumerations shall not be declared in the type-specifier-seq of a conversion function.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Dec 12 15:04:25 PST 2013


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

            Bug ID: 18234
           Summary: [C++98]Enumerations shall not be declared in the
                    type-specifier-seq of a conversion function.
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: zhaoshiz at codeaurora.org
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

In section 12.3.2 Conversion functions:
Classes, enumerations, and typedef-names shall not be declared in the type-
specifier-seq.

$ cat test.C 
struct S {
  operator enum E {x, y} ();
};

int main (int argc, char* argv[]) {
  struct S s;
  return 0;
}

$ clang++ -S test.C 
clang:
/prj/llvm-arm/home/nightly/src/community-branch-34/llvm/tools/clang/lib/AST/DeclBase.cpp:690:
void clang::Decl::CheckAccessDeclContext() const: Assertion `Access != AS_none
&& "Access specifier is AS_none inside a record decl"' failed.
...

Should issue a error msg instead. Both trunk and 3.4 branch hit the same
assertion.

-- 
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/20131212/2c54918f/attachment.html>


More information about the llvm-bugs mailing list