[Bug fortran/53521] [4.5/4.6/4.7/4.8 Regression] Memory leak with zero-sized array constructor

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jun 1 21:08:00 GMT 2012


Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|4.6.4                       |4.5.4
            Summary|[4.5/4.6/4.7 Regression]    |[4.5/4.6/4.7/4.8
                   |Memory leak with zero-sized |Regression] Memory leak
                   |array constructor           |with zero-sized array
                   |                            |constructor
      Known to fail|                            |4.8.0

--- Comment #14 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-06-01 21:07:49 UTC ---
FIXED on the trunk and on all still maintained branches: 4.5, 4.6 and 4.7.

(In reply to comment #10)
> this fixes the issue I saw for CP2K. From some further tests I
> did, I couldn't see any negative side effects.

Good to hear.

> I had a look at other gcc branches, the patch applies flawlessly to 4.7 and 4.6
> (I did not have a 4.5 branch around).

The patch didn't apply directly to 4.5, but replicating the code manually was
very simple.

> I would be very happy to see it integrated in 4.7.1 and 4.6.4,

Note that 4.7.1 will be released soon; I think release-candidate build is due
next week.

More information about the Gcc-bugs mailing list