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

--- Comment #3 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
This is with current trunk (as of a few minutes ago), on
x86_64-unknown-linux-gnu.

ig25@linux-fd1f:~/Krempel/Where> gfortran -g realloc_on_assign_5.f03 
ig25@linux-fd1f:~/Krempel/Where> gfortran -v
Es werden eingebaute Spezifikationen verwendet.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/home/ig25/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper
Ziel: x86_64-unknown-linux-gnu
Konfiguriert mit: ../trunk/configure --prefix=/home/ig25
--enable-languages=c,fortran,c++
Thread-Modell: posix
gcc-Version 4.9.0 20140315 (experimental) (GCC) 
ig25@linux-fd1f:~/Krempel/Where> ./a.out

Program aborted. Backtrace:
#0  0x7F2AC9F1D417
#1  0x7F2AC9F1EB12
#2  0x7F2AC9FEF208
#3  0x400C9E in MAIN__ at realloc_on_assign_5.f03:16 (discriminator 1)
Abgebrochen

gdb tells me this is at

Breakpoint 1, 0x00007ffff6ff2b90 in abort () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff6ff2b90 in abort () from /lib64/libc.so.6
#1  0x00007ffff7adbaf9 in _gfortrani_sys_abort () at
../../../trunk/libgfortran/runtime/error.c:173
#2  0x00007ffff7bac209 in _gfortran_abort () at
../../../trunk/libgfortran/intrinsics/abort.c:33
#3  0x0000000000400c9f in MAIN__ () at realloc_on_assign_5.f03:16
(gdb) up
#1  0x00007ffff7adbaf9 in _gfortrani_sys_abort () at
../../../trunk/libgfortran/runtime/error.c:173
173       abort();
(gdb) up
#2  0x00007ffff7bac209 in _gfortran_abort () at
../../../trunk/libgfortran/intrinsics/abort.c:33
33        sys_abort ();
(gdb) up
#3  0x0000000000400c9f in MAIN__ () at realloc_on_assign_5.f03:16
16        if (a .ne. 'x') call abort

Reply via email to