http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57798
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-07-03
Summary|Incorrect handling of sum |[4.8/4.9 Regression]
|over first dimension of a |Incorrect handling of sum
|product of automatic arrays |over first dimension of a
| |product of automatic arrays
Ever confirmed|0 |1
--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed. It appeared between revision 190090 (2012-08-02: OK) and 190271
(2012-08-09: wrong bounds). Valgrind reports
==70092== Invalid write of size 4
==70092== at 0x100000DD1: func.1887 (pr57798.f90:12)
==70092== by 0x100000C32: sub.1867 (pr57798.f90:21)
==70092== by 0x100000D2F: MAIN__ (pr57798.f90:4)
==70092== by 0x100000E1A: main (pr57798.f90:4)
==70092== Address 0x100440480 is 0 bytes inside a block of size 1 alloc'd
==70092== at 0x100012679: malloc (vg_replace_malloc.c:266)
==70092== by 0x100000C0B: sub.1867 (pr57798.f90:21)
==70092== by 0x100000D2F: MAIN__ (pr57798.f90:4)
==70092== by 0x100000E1A: main (pr57798.f90:4)