[Bug fortran/105379] [12 Regression] ICE in gfc_compare_array_spec(): Array spec clobbered since r12-8235-gfa5cd7102da676dc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105379 Richard Biener changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #5 from Richard Biener --- Thanks.
[Bug fortran/105379] [12 Regression] ICE in gfc_compare_array_spec(): Array spec clobbered since r12-8235-gfa5cd7102da676dc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105379 --- Comment #4 from CVS Commits --- The master branch has been updated by Mikael Morin : https://gcc.gnu.org/g:6a460a2007dd9c527c5f9d5bbbedb852db7c1373 commit r12-8281-g6a460a2007dd9c527c5f9d5bbbedb852db7c1373 Author: Mikael Morin Date: Wed Apr 27 11:36:16 2022 +0200 fortran: Compare non-constant bound expressions. [PR105379] Starting with r12-8235-gfa5cd7102da676dcb1757b1288421f5f3439ae0e, class descriptor types are compared to detect duplicate declarations. This caused ICEs as the comparison of array spec supported only constant explicit bounds, but dummy class variable descriptor types can have a _data field with non-constant array spec bounds. This change adds support for non-constant bounds. For that, gfc_dep_compare_expr is used. It does probably more than strictly necessary, but using it avoids rewriting a specific comparison function, making mistakes and forgetting cases. PR fortran/103662 PR fortran/105379 gcc/fortran/ChangeLog: * array.cc (compare_bounds): Use bool as return type. Support non-constant expressions. (gfc_compare_array_spec): Update call to compare_bounds. gcc/testsuite/ChangeLog: * gfortran.dg/class_dummy_8.f90: New test. * gfortran.dg/class_dummy_9.f90: New test.
[Bug fortran/105379] [12 Regression] ICE in gfc_compare_array_spec(): Array spec clobbered since r12-8235-gfa5cd7102da676dc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105379 Richard Biener changed: What|Removed |Added Priority|P3 |P1
[Bug fortran/105379] [12 Regression] ICE in gfc_compare_array_spec(): Array spec clobbered since r12-8235-gfa5cd7102da676dc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105379 Richard Biener changed: What|Removed |Added Target Milestone|--- |12.0
[Bug fortran/105379] [12 Regression] ICE in gfc_compare_array_spec(): Array spec clobbered since r12-8235-gfa5cd7102da676dc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105379 --- Comment #3 from Mikael Morin --- Created attachment 52876 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52876=edit Draft patch This shows no testsuite regression. But there is something that I want to check before submitting it tomorrow.
[Bug fortran/105379] [12 Regression] ICE in gfc_compare_array_spec(): Array spec clobbered since r12-8235-gfa5cd7102da676dc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105379 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org Summary|[12 Regression] ICE in |[12 Regression] ICE in |gfc_compare_array_spec(): |gfc_compare_array_spec(): |Array spec clobbered|Array spec clobbered since ||r12-8235-gfa5cd7102da676dc --- Comment #2 from Martin Liška --- (In reply to Mikael Morin from comment #1) > Caused by r12-8235-gfa5cd7102da676dcb1757b1288421f5f3439ae0e, I guess. > So I am the culprit. Yes, I can confirm that.
[Bug fortran/105379] [12 Regression] ICE in gfc_compare_array_spec(): Array spec clobbered
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105379 Mikael Morin changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED |ASSIGNED CC||mikael at gcc dot gnu.org Last reconfirmed||2022-04-25 --- Comment #1 from Mikael Morin --- Caused by r12-8235-gfa5cd7102da676dcb1757b1288421f5f3439ae0e, I guess. So I am the culprit.