[cfe-dev] Help with working around an ICE in Apple clang

Konstantin Tokarev annulen at yandex.ru
Sat Jul 28 09:32:56 PDT 2012



28.07.2012, 19:37, "Luc Bourhis" <luc_j_bourhis at mac.com>:
> Hi,
>
> some code of mine triggers an ICE with Apple clang version 3.1 (tags/Apple/clang-318.0.61) but not with the released clang 3.1. Unfortunately, I need to support the version coming with Xcode. I was hoping the experts on this mailing list could help me make sense of the problem and point me toward coming with a workaround better than the only solution I could find by myself (see below).
>
> Here is how to reproduce the problem. With the file attached to this message,
>
> ~> /usr/bin/c++ -S -O3 -I$cctbxsrc -I$cctbx_build_default/include -I$cctbxroot/boost finalise_at_last.cpp

Looks like it's optimizer crash. Could you reduce your optimization level to -O2 or -O0, at least for subject source file?

-- 
Regards,
Konstantin



More information about the cfe-dev mailing list