[LLVMbugs] [Bug 16370] New: odd "attribute cannot be applied to types" error

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 19 01:38:06 PDT 2013


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

            Bug ID: 16370
           Summary: odd "attribute cannot be applied to types" error
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: stephan.bergmann.secondary at googlemail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The unit

struct S1 { virtual ~S1(); };
struct S2: S1 {};
struct S3: S2 {};
struct S4: virtual S2 {};
struct S5: S3, S4 {
    S5();
    ~S5();
};
S5::S5() {}

fails with

> $ clang++ -c test.cc
> test.cc:5:8: error: 'S5' attribute cannot be applied to types
> struct S5: S3, S4 {
>        ^
> 1 error generated.

with recent Clang trunk ("clang version 3.4 (trunk 184282)") but works with
Clang 3.3 ("clang version 3.3 (tags/RELEASE_33/final 184073)").

-- 
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/20130619/d1987a96/attachment.html>


More information about the llvm-bugs mailing list