[Bug fortran/55072] [4.6/4.7/4.8 Regression] Missing internal_pack leads to wrong code with derived type

janus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Dec 15 19:46:00 GMT 2012


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

--- Comment #14 from janus at gcc dot gnu.org 2012-12-15 19:46:37 UTC ---
(In reply to comment #13)
> (In reply to comment #11)
> > Ok, revised version of the patch from comment 9, which fixes the runtime
> > failure on internal_pack_10.f90:
> > 
> > [...]
> > 
> It feels like a hack (that what there before) to blindly disable derived types
> here.  The real problem is that the code under the if condition supports only
> bare variables without subreferences.
> On the other hand it looks like a correct hack WRT the existing behaviour.

Well, yeah. My primary concern right now is really to get the regression fixed
ASAP (this sort of wrong-code regression is pretty much the worst thing which
can happen in terms of compiler bugs, I guess).

But of course you're right about the underlying problem. If you are willing to
fix this, it would be greatly appreciated. (I currently do not have the
capacities to take care of it, unfortunately.)



More information about the Gcc-bugs mailing list