<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Crash in StmtPrinter where some record member-access has been parsed as a pseudo Objective-C message"
href="http://llvm.org/bugs/show_bug.cgi?id=18762">18762</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Crash in StmtPrinter where some record member-access has been parsed as a pseudo Objective-C message
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mathieu.baudet@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=12027" name="attach_12027" title="Stack trace with my local compilation of clang 3.4">attachment 12027</a> <a href="attachment.cgi?id=12027&action=edit" title="Stack trace with my local compilation of clang 3.4">[details]</a></span>
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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>