[Bug middle-end/42803] [4.4/4.5 Regression] c++ compilation hang
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Jan 19 16:57:00 GMT 2010
------- Comment #5 from jakub at gcc dot gnu dot org 2010-01-19 16:57 -------
Created an attachment (id=19657)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19657&action=view)
gcc45-pr42803.patch
Alternative patch, which should avoid exponential behavior in all cases (even
when there are casts that narrowing_initializer_constant_valid_p skips).
POINTER_PLUS_EXPR/PLUS_EXPR/MINUS_EXPR/CONSTRUCTOR seem to be the only ones
where initializer_constant_valid_p recurses more than once, so I think it is
enough to cache those.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42803
More information about the Gcc-bugs
mailing list