https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103283
G. Steinmetz changed:
What|Removed |Added
Keywords||ice-on-valid-code
--- Comment #1 from G.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103283
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Ever confirmed|0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103283
--- Comment #3 from anlauf at gcc dot gnu.org ---
There's more to it:
program p
type t
integer :: a(1) = 2
end type
type(t), parameter :: x(1) = t(3)
integer, parameter :: k(*) = x(1)%a
end
This fails with:
pr103283-z1.f90:6:28:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103283
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Keywords||wrong-code
--- Comment #4 fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103283
--- Comment #5 from anlauf at gcc dot gnu.org ---
I did get some progress with the attempt:
diff --git a/gcc/fortran/expr.c b/gcc/fortran/expr.c
index 87089321a3b..d5bbcd493b6 100644
--- a/gcc/fortran/expr.c
+++ b/gcc/fortran/expr.c
@@ -1929,6 +