[LLVMbugs] [Bug 18762] New: Crash in StmtPrinter where some record member-access has been parsed as a pseudo Objective-C message
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Feb 6 11:32:52 PST 2014
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: unassignedclangbugs at nondot.org
Reporter: mathieu.baudet at gmail.com
CC: llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140206/36032fd3/attachment.html>
More information about the llvm-bugs
mailing list