On Fri, Feb 29, 2008 at 2:48 PM, FX <[EMAIL PROTECTED]> wrote: > > Another workaround is to use a VIEW_CONVERT_EXPR in case > > fold_convertible_p () returns false but you still think you are ok. > > I'm trying that, but fold_convertible_p () return true and it still > ICEs in in fold_convert, at fold-const.c:2643! Basically, > fold_convert() can't handle RECORD_TYPEs, but in fold_convertible_p() > it falls into the default case and returns TRUE, in my case. Is it > considered a middle-end bug?
Yeah, it should return false for some classes of types, RECORD_TYPE, UNION_TYPE, ARRAY_TYPE come to my mind here. Patch welcome ;) Richard.