http://llvm.org/bugs/show_bug.cgi?id=9419
Summary: assert "no type attributes in the expected location"
in simple (invalid) construct
Product: clang
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Created an attachment (id=6289)
--> (http://llvm.org/bugs/attachment.cgi?id=6289)
Test case
When parsing the very simple following code using clang, it asserts (and so
abort) instead of just emitting a diagnostic.
------- attr.m
@interface Foo { id ivar __weak; }
@end
------------
% clang --version
clang version 2.9 (trunk 127155)
Target: x86_64-apple-darwin10
Thread model: posix
% clang -c attr.m
attr.m:2:26: error: multiple garbage collection attributes specified for type
@interface Foo { id ivar __weak; }
^
<built-in>:140:31: note: instantiated from:
#define __weak __attribute__((objc_gc(weak)))
^
Assertion failed: (attrs && "no type attributes in the expected location!"),
function fillAttributedTypeLoc, file
/Volumes/MacPro/Projects/OpenSource/llvm/tools/clang/lib/Sema/SemaType.cpp,
line 2166.
[…]
5 clang 0x00000001000116c8 __assert_rtn + 56
6 clang 0x000000010049aae5
fillAttributedTypeLoc(clang::AttributedTypeLoc, clang::AttributeList const*) +
437
7 clang 0x000000010049ac6f clang::TypeLocVisitor<(anonymous
namespace)::TypeSpecLocFiller, void>::Visit(clang::UnqualTypeLoc) + 271
8 clang 0x000000010049a6aa
clang::Sema::GetTypeSourceInfoForDeclarator(clang::Declarator&,
clang::QualType, clang::TypeSourceInfo*) + 1770
9 clang 0x000000010049846a
clang::Sema::GetTypeForDeclarator(clang::Declarator&, clang::Scope*,
clang::TagDecl**, bool) + 17402
10 clang 0x00000001002f676f clang::Sema::ActOnIvar(clang::Scope*,
clang::SourceLocation, clang::Decl*, clang::Declarator&, clang::Expr*,
clang::tok::ObjCKeywordKind) + 143
[…]
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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