[Bug middle-end/58970] [4.7/4.8/4.9 Regression] internal compiler error: in get_bit_range, at expr.c:4562

bernd.edlinger at hotmail dot de gcc-bugzilla@gcc.gnu.org
Wed Nov 6 07:30:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58970

--- Comment #26 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
(In reply to Jakub Jelinek from comment #25)
> (In reply to Bernd Edlinger from comment #24)
> > Created attachment 31169 [details]
> > Another (better) attempt at fixing this ICE.
> > 
> > This avoids any negative bitpos from get_inner_reference.
> > These negative bitpos values are just _very_ dangerous all the
> > way down to expmed.c
> 
> I disagree that it is better, you are forgetting get_inner_reference has
> other > 20 callers outside of expansion and there is no reason why negative
> bitpos would be a problem in those cases.

Please, give me one example of _valid_ C where bitpos is negative.



More information about the Gcc-bugs mailing list