http://llvm.org/bugs/show_bug.cgi?id=18762
Bug ID: 18762
Summary: Crash in StmtPrinter where some record member-access
has been parsed as a pseudo Objective-C message
Product: clang
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Created attachment 12027
--> http://llvm.org/bugs/attachment.cgi?id=12027&action=edit
Stack trace with my local compilation of clang 3.4
Printing the AST of the following Objective-C program crashes clang 3.3 (Apple
Xcode 5) and my local version of clang 3.4 (see stack trace with symbols).
The issue transposes to a crash of the AST dumper when the problematic
expression "A.foo.x" is moved into a __typeof__().
Not sure if the bug is about the printer or the parser. (The AST looks weird to
me in first place.)
cat >test.m << EOF
struct S { int x; };
@interface A
+ (struct S)foo;
@end
void f() {
int _y = A.foo.x;
}
EOF
clang -Xclang -ast-print -c test.m
--
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