[LLVMbugs] [Bug 15300] New: clang doesn't allow attributes in base-specifier

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Feb 19 10:15:02 PST 2013


            Bug ID: 15300
           Summary: clang doesn't allow attributes in base-specifier
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: vanyacpp at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The following code is rejected by clang:

struct x : [[y]] virtual x

1.cpp:1:12: error: expected class name
struct x : [[y]] virtual x
1 error generated.

I believe this code is valid according to language grammar:

   attribute-specifier-seq[opt] base-type-specifier
   attribute-specifier-seq[opt] virtual access-specifier[opt]
   attribute-specifier-seq[opt] access-specifier virtual[opt]

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/20130219/bb3f99cb/attachment.html>

More information about the llvm-bugs mailing list