[Bug fortran/110585] ICE in gfc_compare_expr for findloc with complex literal array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110585 anlauf at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|--- |11.5 Status|ASSIGNED|RESOLVED --- Comment #7 from anlauf at gcc dot gnu.org --- Fixed on mainline for gcc-14, and on all open branches. Closing. Thanks for the report!
[Bug fortran/110585] ICE in gfc_compare_expr for findloc with complex literal array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110585 --- Comment #6 from CVS Commits --- The releases/gcc-11 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:8e365976ddc856a4c08aa52f90799330baed599a commit r11-10900-g8e365976ddc856a4c08aa52f90799330baed599a Author: Harald Anlauf Date: Fri Jul 7 20:25:06 2023 +0200 Fortran: simplification of FINDLOC for constant complex arguments [PR110585] gcc/fortran/ChangeLog: PR fortran/110585 * arith.c (gfc_compare_expr): Handle equality comparison of constant complex gfc_expr arguments. gcc/testsuite/ChangeLog: PR fortran/110585 * gfortran.dg/findloc_9.f90: New test. (cherry picked from commit 7ac1581d066a6f3a0d4acf1042a74634258b4966)
[Bug fortran/110585] ICE in gfc_compare_expr for findloc with complex literal array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110585 --- Comment #5 from CVS Commits --- The releases/gcc-12 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:2d416f352be898c408fd3db402719d6625f26720 commit r12-9762-g2d416f352be898c408fd3db402719d6625f26720 Author: Harald Anlauf Date: Fri Jul 7 20:25:06 2023 +0200 Fortran: simplification of FINDLOC for constant complex arguments [PR110585] gcc/fortran/ChangeLog: PR fortran/110585 * arith.cc (gfc_compare_expr): Handle equality comparison of constant complex gfc_expr arguments. gcc/testsuite/ChangeLog: PR fortran/110585 * gfortran.dg/findloc_9.f90: New test. (cherry picked from commit 7ac1581d066a6f3a0d4acf1042a74634258b4966)
[Bug fortran/110585] ICE in gfc_compare_expr for findloc with complex literal array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110585 --- Comment #4 from CVS Commits --- The releases/gcc-13 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:d00a7d22c68aae583fa37236d894a220028dd0c8 commit r13-7550-gd00a7d22c68aae583fa37236d894a220028dd0c8 Author: Harald Anlauf Date: Fri Jul 7 20:25:06 2023 +0200 Fortran: simplification of FINDLOC for constant complex arguments [PR110585] gcc/fortran/ChangeLog: PR fortran/110585 * arith.cc (gfc_compare_expr): Handle equality comparison of constant complex gfc_expr arguments. gcc/testsuite/ChangeLog: PR fortran/110585 * gfortran.dg/findloc_9.f90: New test. (cherry picked from commit 7ac1581d066a6f3a0d4acf1042a74634258b4966)
[Bug fortran/110585] ICE in gfc_compare_expr for findloc with complex literal array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110585 --- Comment #3 from CVS Commits --- The master branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:7ac1581d066a6f3a0d4acf1042a74634258b4966 commit r14-2394-g7ac1581d066a6f3a0d4acf1042a74634258b4966 Author: Harald Anlauf Date: Fri Jul 7 20:25:06 2023 +0200 Fortran: simplification of FINDLOC for constant complex arguments [PR110585] gcc/fortran/ChangeLog: PR fortran/110585 * arith.cc (gfc_compare_expr): Handle equality comparison of constant complex gfc_expr arguments. gcc/testsuite/ChangeLog: PR fortran/110585 * gfortran.dg/findloc_9.f90: New test.
[Bug fortran/110585] ICE in gfc_compare_expr for findloc with complex literal array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110585 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #2 from anlauf at gcc dot gnu.org --- Submitted: https://gcc.gnu.org/pipermail/fortran/2023-July/059566.html
[Bug fortran/110585] ICE in gfc_compare_expr for findloc with complex literal array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110585 anlauf at gcc dot gnu.org changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |anlauf at gcc dot gnu.org Status|UNCONFIRMED |NEW Ever confirmed|0 |1 CC||anlauf at gcc dot gnu.org Last reconfirmed||2023-07-07 --- Comment #1 from anlauf at gcc dot gnu.org --- Confirmed. Complex seems to have been forgotten in simplification... Obvious fix: @@ -1120,6 +1130,10 @@ gfc_compare_expr (gfc_expr *op1, gfc_expr *op2, gfc_intrinsic_op op) || (op1->value.logical && !op2->value.logical)); break; +case BT_COMPLEX: + rc = mpc_cmp (op1->value.complex, op2->value.complex); + break; + default: gfc_internal_error ("gfc_compare_expr(): Bad basic type"); }