------- Comment #6 from pault at gcc dot gnu dot org 2008-03-21 08:02 ------- (In reply to comment #5) > Subject: Re: ICE in fold_const.c (fold_convert) when reordering USE > statements > > On 4 Sep 2007 19:03:39 -0000, ubizjak at gmail dot com > <[EMAIL PROTECTED]> wrote: > > and c never generates RECORD_TYPEs > > Yes it does. Structs in C are done as RECORD_TYPEs. > > This code is just plainly wrong really. fold_convert should not > handle RECORD_TYPEs. And if does, it is not going to help with > optimizations anyways. The Fortran front-end has to better keep track > of modules and types inside modules to get this correct. > > Thanks, > Andrew Pinski >
Andrew, I agree with you wholeheartedly on this. I missed this PR somehow. I thought that I had cleared up all these nasties with derived types and modules. I'll take a look tonight. Cheers Paul -- pault at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |pault at gcc dot gnu dot org |dot org | Status|NEW |ASSIGNED Last reconfirmed|2007-09-03 20:07:11 |2008-03-21 08:02:59 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33295