[cfe-dev] Endless loop in Sema::CorrectTypo

Yaron Keren yaron.keren at gmail.com
Wed Oct 2 00:43:20 PDT 2013


clang was stuck for at least 3 minutes on my machine, but it's a slow i3
and I use clang build with assertions on which slow the compilation. In any
case, without the zzzzzzzzzzzz error it takes about 3 seconds (not too fast
either) and clang should not behave like that. Previous r191323 did not.

I run clang under debugger and breaked clang a few times it was always
in Sema::CorrectTypo or its called functions so something is likely wrong
with it, clang tries "too hard" to correct the error.

Yaron



2013/10/2 G M <gmisocpp at gmail.com>

> Hi Yaron
>
> I tried your sample file out on my machine with libcxx tot and clang tot.
> I should note my libcxx has some patches in that are waiting to be applied,
> so it's not quite like yours, but hopefully that won't make a difference.
>
> Your example took about 14 seconds to compile on my machine. That time is
> excessive. g++ produced a similar error instantly.
>
> I've report other excessive compile times recently and this may or may not
> be related. See this bug for a similar slow example:
> http://llvm.org/bugs/show_bug.cgi?id=17414
>
> Something is definitely wrong, that something could be more than one thing.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131002/f5fe9d4f/attachment.html>


More information about the cfe-dev mailing list