Created attachment 12027 [details] 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
Fixed in 200953. -ast-print now outputs: struct S { int x; }; @interface A+ (struct S) foo; @end void f() { int _y = A.foo.x; }
Faster than light. Thanks!