<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">I don’t see a crash with TOT clang:<div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><b>t.m:3:3: </b><span style="color: #c33720"><b>error: </b></span><b>unknown type name 'A'</b></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"> A* response; // expected-error {{unknown type name 'A'}}</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(52, 189, 38);"><b> ^</b></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><b>t.m:8:11: </b><span style="color: #c33720"><b>error: </b></span><b>unknown type name 'A'</b></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">@property A* response; // expected-error {{unknown type name 'A'}}</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(52, 189, 38);"><b> ^</b></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><b>t.m:13:16: </b><span style="color: #c33720"><b>error: </b></span><b>expected a type</b></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">- (void) foo :(A*) a // expected-error {{expected a type}}</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(52, 189, 38);"><b> ^</b></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><b>t.m:15:17: </b><span style="color: #c33720"><b>error: </b></span><b>assignment to readonly property</b></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"> self.response = a;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(52, 189, 38);"><b> ~~~~~~~~~~~~~ ^ ~</b></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">4 errors generated.</div><div><br></div><div>- Fariborz</div><div><br></div><div><div>On Jul 30, 2014, at 12:42 AM, Olivier Goffart <<a href="mailto:ogoffart@kde.org">ogoffart@kde.org</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi,<br><br>Attached you will find a fix for a crash I have when parsing objective C with <br>missing include.<br>This is a regression against clang 3.4 which did not crash.<br><br>My approach here is naive and just fixes the symptoms (the crash).<br><br>Regards<br>-- <br>Olivier<span><0001-Fix-crash-when-assiging-to-a-property-with-an-invali.patch></span></blockquote></div><br></div></body></html>