Crash in StmtPrinter where some record member-access has been parsed as a pseudo Objective-C message #19136
Labels
bugzilla
Issues migrated from bugzilla
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
Extended Description
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
@end
void f() {
int _y = A.foo.x;
}
EOF
clang -Xclang -ast-print -c test.m
The text was updated successfully, but these errors were encountered: