https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102599
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2025-5-20
Keywords| |rejects-valid
--- Comment #2 from anlauf at gcc dot gnu.org ---
The situation has even degraded in the mean time. While the testcase
in comment#0 did at least "compile" with gcc-12, it is rejected at >= 13:
pr102599.f90:4:3:
4 | real, parameter :: r(*) = x%re
| 1
Error: Unclassifiable statement at (1)
pr102599.f90:7:12:
7 | print *, i, all(i == 0) ! wrong
| 1
Error: Symbol 'i' at (1) has no IMPLICIT type
pr102599.f90:6:12:
6 | print *, r, all(r == 1) ! wrong
| 1
Error: Symbol 'r' at (1) has no IMPLICIT type
While the first code substitution from comment#1 helps, the other
replacement does not lead to an ICE here but it wrongly rejected.