http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54375
Bug #: 54375 Summary: FAIL: gfortran.dg/realloc_on_assign_14.f90 Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassig...@gcc.gnu.org ReportedBy: dang...@gcc.gnu.org Host: hppa64-hp-hpux11.11 Target: hppa64-hp-hpux11.11 Build: hppa64-hp-hpux11.11 Executing on host: /test/gnu/gcc/objdir/gcc/testsuite/gfortran/../../gfortran -B /test/gnu/gcc/objdir/gcc/testsuite/gfortran/../../ -B/test/gnu/gcc/objdir/hppa64 -hp-hpux11.11/./libgfortran/ /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc _on_assign_14.f90 -fno-diagnostics-show-caret -O -Wrealloc-lhs-all -Wrealloc -lhs -S -o realloc_on_assign_14.s (timeout = 300) spawn /test/gnu/gcc/objdir/gcc/testsuite/gfortran/../../gfortran -B/test/gnu/gcc /objdir/gcc/testsuite/gfortran/../../ -B/test/gnu/gcc/objdir/hppa64-hp-hpux11.11 /./libgfortran/ /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14 .f90 -fno-diagnostics-show-caret -O -Wrealloc-lhs-all -Wrealloc-lhs -S -o reallo c_on_assign_14.s/test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:17.4: b = 4 ! { dg-warning "Code for reallocating the allocatable variable" } 1Warning: Code for reallocating the allocatable variable at (1) will be added/test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:18:a = [b,b] ! { dg-warning "Code for reallocating the allocatable array" }1Warning: Code for reallocating the allocatable array at (1) will be added /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:19: c = [t(4)] ! { dg-warning "Code for reallocating the allocatable variable" } 1 Warning: Code for reallocating the allocatable variable at (1) will be added /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:22.6: str = 'abc' ! { dg-warning "Code for reallocating the allocatable variable" } 1 Warning: Code for reallocating the allocatable variable at (1) will be added /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:24: astr = ['abc'] ! { dg-warning "Code for reallocating the allocatable array" } 1 Warning: Code for reallocating the allocatable array at (1) will be added /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:25: a = reshape(a,shape(a)) ! { dg-warning "Code for reallocating the allocatable a 1 Warning: Code for reallocating the allocatable array at (1) will be added /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:26: r = sin(r) ! { dg-warning "Code for reallocating the allocatable array" } 1 Warning: Code for reallocating the allocatable array at (1) will be added /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:28.4: b = sin(r(1)) ! { dg-warning "Code for reallocating the allocatable variable" } 1 Warning: Code for reallocating the allocatable variable at (1) will be added /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:30: a = nar() ! { dg-warning "Code for reallocating the allocatable array" } 1 Warning: Code for reallocating the allocatable array at (1) will be added /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:31: a = nar2() ! { dg-warning "Code for reallocating the allocatable array" } 1 Warning: Code for reallocating the allocatable array at (1) will be added /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90: In function 'MAIN__': /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:31:0: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. compiler exited with status 1 output is: /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:17.4: b = 4 ! { dg-warning "Code for reallocating the allocatable variable" } 1 Warning: Code for reallocating the allocatable variable at (1) will be added /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:18: a = [b,b] ! { dg-warning "Code for reallocating the allocatable array" } 1 Warning: Code for reallocating the allocatable array at (1) will be added /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:19: c = [t(4)] ! { dg-warning "Code for reallocating the allocatable variable" } 1 Warning: Code for reallocating the allocatable variable at (1) will be added /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:22.6: str = 'abc' ! { dg-warning "Code for reallocating the allocatable variable" } 1 Warning: Code for reallocating the allocatable variable at (1) will be added /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:24: astr = ['abc'] ! { dg-warning "Code for reallocating the allocatable array" } 1 Warning: Code for reallocating the allocatable array at (1) will be added /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:25: a = reshape(a,shape(a)) ! { dg-warning "Code for reallocating the allocatable a 1 Warning: Code for reallocating the allocatable array at (1) will be added /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:26: r = sin(r) ! { dg-warning "Code for reallocating the allocatable array" } 1 Warning: Code for reallocating the allocatable array at (1) will be added /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:28.4: b = sin(r(1)) ! { dg-warning "Code for reallocating the allocatable variable" } 1 Warning: Code for reallocating the allocatable variable at (1) will be added /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:30: a = nar() ! { dg-warning "Code for reallocating the allocatable array" } 1 Warning: Code for reallocating the allocatable array at (1) will be added /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:31: a = nar2() ! { dg-warning "Code for reallocating the allocatable array" } 1 Warning: Code for reallocating the allocatable array at (1) will be added /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90: In function 'MAIN__': /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:31:0: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. FAIL: gfortran.dg/realloc_on_assign_14.f90 -O (internal compiler error) PASS: gfortran.dg/realloc_on_assign_14.f90 -O (test for warnings, line 17) PASS: gfortran.dg/realloc_on_assign_14.f90 -O (test for warnings, line 18) PASS: gfortran.dg/realloc_on_assign_14.f90 -O (test for warnings, line 19) PASS: gfortran.dg/realloc_on_assign_14.f90 -O (test for warnings, line 22) PASS: gfortran.dg/realloc_on_assign_14.f90 -O (test for warnings, line 24) PASS: gfortran.dg/realloc_on_assign_14.f90 -O (test for warnings, line 25) PASS: gfortran.dg/realloc_on_assign_14.f90 -O (test for warnings, line 26) PASS: gfortran.dg/realloc_on_assign_14.f90 -O (test for warnings, line 28) PASS: gfortran.dg/realloc_on_assign_14.f90 -O (test for warnings, line 30) PASS: gfortran.dg/realloc_on_assign_14.f90 -O (test for warnings, line 31) FAIL: gfortran.dg/realloc_on_assign_14.f90 -O (test for excess errors) Excess errors: /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:31:0:0: internal compiler error: Segmentation fault Starting program: /test/gnu/gcc/objdir/gcc/f951 /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90 -quiet -dumpbase realloc_on_assign_14.f90 -auxbase-strip realloc_on_assign_14.s -O -Wrealloc-lhs-all -Wrealloc-lhs -version -fno-diagnostics-show-caret -o realloc_on_assign_14.s -fintrinsic-modules-path finclude warning: Private mapping of shared library text was not specified by the executable; setting a breakpoint in a shared library which is not privately mapped will not work. See the HP-UX 11i v3 chatr manpage for methods to privately map shared library text. GNU Fortran (GCC) version 4.8.0 20120824 (experimental) [trunk revision 190636] (hppa64-hp-hpux11.11) compiled by GNU C version 4.8.0 20120824 (experimental) [trunk revision 190636], GMP version 5.0.2, MPFR version 3.1.0-p1, MPC version 1.0 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU Fortran (GCC) version 4.8.0 20120824 (experimental) [trunk revision 190636] (hppa64-hp-hpux11.11) compiled by GNU C version 4.8.0 20120824 (experimental) [trunk revision 190636], GMP version 5.0.2, MPFR version 3.1.0-p1, MPC version 1.0 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:17.4: b = 4 ! { dg-warning "Code for reallocating the allocatable variable" } 1 Warning: Code for reallocating the allocatable variable at (1) will be added /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:18: a = [b,b] ! { dg-warning "Code for reallocating the allocatable array" } 1 Warning: Code for reallocating the allocatable array at (1) will be added /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:19: c = [t(4)] ! { dg-warning "Code for reallocating the allocatable variable" } 1 Warning: Code for reallocating the allocatable variable at (1) will be added /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:22.6: str = 'abc' ! { dg-warning "Code for reallocating the allocatable variable" } 1 Warning: Code for reallocating the allocatable variable at (1) will be added /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:24: astr = ['abc'] ! { dg-warning "Code for reallocating the allocatable array" } 1 Warning: Code for reallocating the allocatable array at (1) will be added /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:25: a = reshape(a,shape(a)) ! { dg-warning "Code for reallocating the allocatable a 1 Warning: Code for reallocating the allocatable array at (1) will be added /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:26: r = sin(r) ! { dg-warning "Code for reallocating the allocatable array" } 1 Warning: Code for reallocating the allocatable array at (1) will be added /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:28.4: b = sin(r(1)) ! { dg-warning "Code for reallocating the allocatable variable" } 1 Warning: Code for reallocating the allocatable variable at (1) will be added /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:30: a = nar() ! { dg-warning "Code for reallocating the allocatable array" } 1 Warning: Code for reallocating the allocatable array at (1) will be added /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90:31: a = nar2() ! { dg-warning "Code for reallocating the allocatable array" } 1 Warning: Code for reallocating the allocatable array at (1) will be added Program received signal SIGSEGV, Segmentation fault. 0x4000000000313b0c in gfc_set_loop_bounds_from_array_spec(gfc_interface_mapping*, gfc_se*, gfc_array_spec*) () at ../../gcc/gcc/fortran/trans-array.c:794 794 ss->loop->to[n] = tmp; Similar fail: Executing on host: /test/gnu/gcc/objdir/gcc/testsuite/gfortran/../../gfortran -B/test/gnu/gcc/objdir/gcc/testsuite/gfortran/../../ -B/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/./libgfortran/ /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_2.f03 -fno-diagnostics-show-caret -O0 -pedantic-errors -B/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/./libgfortran/.libs -L/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/./libgfortran/.libs -L/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/./libgfortran/.libs -B/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/./libquadmath/.libs -L/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/./libquadmath/.libs -L/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/./libquadmath/.libs -lm -o ./realloc_on_assign_2.exe (timeout = 300) spawn /test/gnu/gcc/objdir/gcc/testsuite/gfortran/../../gfortran -B/test/gnu/gcc/objdir/gcc/testsuite/gfortran/../../ -B/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/./libgfortran/ /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_2.f03 -fno-diagnostics-show-caret -O0 -pedantic-errors -B/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/./libgfortran/.libs -L/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/./libgfortran/.libs -L/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/./libgfortran/.libs -B/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/./libquadmath/.libs -L/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/./libquadmath/.libs -L/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/./libquadmath/.libs -lm -o ./realloc_on_assign_2.exe /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_2.f03: In function 'test5': /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_2.f03:110:0: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. compiler exited with status 1 output is: /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_2.f03: In function 'test5': /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_2.f03:110:0: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. FAIL: gfortran.dg/realloc_on_assign_2.f03 -O0 (internal compiler error) FAIL: gfortran.dg/realloc_on_assign_2.f03 -O0 (test for excess errors) Excess errors: /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/realloc_on_assign_2.f03:110:0:0: internal compiler error: Segmentation fault This one appears to be a regression.