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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tkoenig at gcc dot gnu.org

--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-03-10 
23:09:15 UTC ---
Valgrind:

==9860== Invalid write of size 8
==9860==    at 0x4EAB980: _gfortran_sum_r8 (sum_r8.c:147)
==9860==    by 0x400955: MAIN__ (test.f90:3)

>From libgfortran/generated/sum_r8.f90:

  dest = retarray->data;
[...]
        if (len <= 0)
          *dest = 0;

which fails if dest == NULL

Reply via email to