[Bug fortran/92961] [8 Regression] ICE in gfc_zero_size_array, at fortran/arith.c:1680
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92961 Thomas Koenig changed: What|Removed |Added Depends on||93104 Target Milestone|--- |8.4 Summary|[8/9 Regression] ICE in |[8 Regression] ICE in |gfc_zero_size_array, at |gfc_zero_size_array, at |fortran/arith.c:1680|fortran/arith.c:1680 --- Comment #5 from Thomas Koenig --- Commit to 8-branch held up by PR 93104. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93104 [Bug 93104] [8/10 Regression] Current trunk can not build gcc 8
[Bug fortran/92961] [8 Regression] ICE in gfc_zero_size_array, at fortran/arith.c:1680
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92961 Thomas Koenig changed: What|Removed |Added Depends on|93104 | --- Comment #6 from Thomas Koenig --- Boostrapping gcc 8 with the system compiler (gcc 7.4.1) worked, so I can regression-test the fix 93104. Unsetting "Depends on". Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93104 [Bug 93104] [9/10 Regression] Current trunk can not build gcc 8
[Bug fortran/92961] [8 Regression] ICE in gfc_zero_size_array, at fortran/arith.c:1680
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92961 --- Comment #7 from Thomas Koenig --- Author: tkoenig Date: Mon Dec 30 15:27:08 2019 New Revision: 279769 URL: https://gcc.gnu.org/viewcvs?rev=279769&root=gcc&view=rev Log: 2019-12-30 Thomas Koenig Backport from trunk PR fortran/92961 * fortran/ChangeLog: Added entry. * testsuite/ChangeLog: Added entry. Modified: branches/gcc-9-branch/gcc/fortran/ChangeLog branches/gcc-9-branch/gcc/testsuite/ChangeLog
[Bug fortran/92961] [8 Regression] ICE in gfc_zero_size_array, at fortran/arith.c:1680
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92961 --- Comment #8 from Thomas Koenig --- Author: tkoenig Date: Mon Dec 30 15:29:30 2019 New Revision: 279770 URL: https://gcc.gnu.org/viewcvs?rev=279770&root=gcc&view=rev Log: Catch division by zero errors in array sizes. 2019-12-30 Thomas Koenig Backport from trunk PR fortran/92961 * gfortran.h (gfc_seen_div0): Add declaration. * arith.h (gfc_seen_div0): Add definition. (eval_intrinsic): For integer division by zero, set gfc_seen_div0. * decl.c (variable_decl): If resolution resp. simplification fails for array spec and a division of zero error has been seen, return MATCH_ERROR. 2019-12-30 Thomas Koenig Backport from trunk PR fortran/92961 * gfortran.dg/arith_divide_2.f90: New test. Added: branches/gcc-8-branch/gcc/testsuite/gfortran.dg/arith_divide_2.f90 Modified: branches/gcc-8-branch/gcc/fortran/ChangeLog branches/gcc-8-branch/gcc/fortran/arith.c branches/gcc-8-branch/gcc/fortran/decl.c branches/gcc-8-branch/gcc/fortran/gfortran.h branches/gcc-8-branch/gcc/testsuite/ChangeLog
[Bug fortran/92961] [8 Regression] ICE in gfc_zero_size_array, at fortran/arith.c:1680
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92961 Thomas Koenig changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #9 from Thomas Koenig --- Fixed on all open branches. Thanks for the bug report!