Diego Novillo <[EMAIL PROTECTED]> writes: | I hit an ICE inside an optimizer pass because the code had a glaring syntax | error that we diagnosed correctly, but since we kept going, the | transformation didn't find the CFG in the assumed state, causing the ICE. | | Is there any reason in particular we don't just make the gate functions | return false when errorcount > 0?
none I can see. We should not try to get into the gimplifier (as the C++ front-end does) when we know the translation unit is doomed to fail. This is an annoying issue, especially in the C++ front-end (see cp_finish_file) where template instantiations are stubbornly tried even when we know we won't get a good translation unit out ot it. -- Gabriel Dos Reis [EMAIL PROTECTED] Texas A&M University -- Department of Computer Science 301, Bright Building -- College Station, TX 77843-3112