<div dir="ltr">It's probably another case where an expression with a delayed typo correction in it is replaced with ExprError() after a parser error is hit, without resolving any undiagnosed typos in the expression before dropping it. I've added PR23285 to my queue of bugs to work on.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 1, 2015 at 3:03 PM, Dimitry Andric <span dir="ltr"><<a href="mailto:dimitry@andric.com" target="_blank">dimitry@andric.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 01 May 2015, at 21:36, Kaelyn Takata <<a href="mailto:rikka@google.com">rikka@google.com</a>> wrote:<br>
><br>
> Author: rikka<br>
> Date: Fri May 1 14:36:25 2015<br>
> New Revision: 236337<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=236337&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=236337&view=rev</a><br>
> Log:<br>
> Eagerly correct typos in ParenExprs that may be type casts for non-C++ code.<br>
><br>
> This is needed to ensure the type casts are parsed properly. Fixes<br>
> PR23101.<br>
<br>
</span>I had hoped this would also fix <a href="http://llvm.org/PR23285" target="_blank">http://llvm.org/PR23285</a>, but unfortunately it does not:<br>
<br>
$ ~/obj/llvm-236349-trunk-freebsd11-i386-ninja-rel-1/bin/clang -cc1 -triple x86_64-unknown-freebsd11.0 -emit-obj testcase.c<br>
testcase.c:1:1: warning: type specifier missing, defaults to 'int'<br>
a = 0(uintmax_t<br>
^<br>
testcase.c:1:16: error: expected ')'<br>
a = 0(uintmax_t<br>
^<br>
testcase.c:1:6: note: to match this '('<br>
a = 0(uintmax_t<br>
^<br>
testcase.c:1:16: error: expected ';' after top level declarator<br>
a = 0(uintmax_t<br>
^<br>
;<br>
Assertion failed: (DelayedTypos.empty() && "Uncorrected typos!"), function ~Sema, file /share/dim/src/llvm/trunk/tools/clang/lib/Sema/Sema.cpp, line 273.<br>
Abort trap (core dumped)<br>
<br>
Any idea? :-)<br>
<span class="HOEnZb"><font color="#888888"><br>
-Dimitry<br>
<br>
</font></span></blockquote></div><br></div>