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

            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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    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:

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to