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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs