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



--- Comment #10 from stefan.mauerberger at gmail dot com 2013-02-10 18:34:51 
UTC ---

Hi There!



Its me again. Unfortunately, I have to report that there is still something

wired. The following slightly modified code causes a memory leak: 

PROGRAM main



    TYPE :: test_typ

        REAL, ALLOCATABLE :: a(:)

    END TYPE 



    TYPE(test_typ) :: conc(2)



    conc = [ test_typ( [1.0,2.0] ), test_typ( [4.0,4.9] ) ]



END PROGRAM main



Well, the code does not crash, however, valgrind says:

...

==18920== LEAK SUMMARY:

==18920==    definitely lost: 16 bytes in 2 blocks

...



Not invoking the array-constructor, everything seems to be fine. Any ideas?

Reply via email to