https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88047
janus at gcc dot gnu.org changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88047
--- Comment #8 from janus at gcc dot gnu.org ---
Author: janus
Date: Tue Jan 8 19:29:01 2019
New Revision: 267735
URL: https://gcc.gnu.org/viewcvs?rev=267735=gcc=rev
Log:
2019-01-08 Janus Weil
PR fortran/88047
* class.c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88047
janus at gcc dot gnu.org changed:
What|Removed |Added
Status|NEW |ASSIGNED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88047
--- Comment #6 from Dominique d'Humieres ---
> A related test case, also changed between 20180909 and 20180916 :
Confirmed at r264350, not fixed by the patch in comment 2, but by the patch in
comment 3.
Janus, could please you figure out why
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88047
--- Comment #5 from G. Steinmetz ---
A related test case, also changed between 20180909 and 20180916 :
$ cat z2.f90
program p
type t
integer :: n
end type
class(t) :: a, x
x = a
end
$ gfortran-9-20180909 -c z2.f90
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88047
--- Comment #4 from Dominique d'Humieres ---
> Side note: In principle I would have preferred something like this:
> ...
I agree that the patch is more general than my ad hoc check that a particular
pointer is not dereferenced.
> But that ICEs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88047
--- Comment #3 from janus at gcc dot gnu.org ---
(In reply to Dominique d'Humieres from comment #2)
> The following patch restores the errors
It doesn't seem to cause any regressions in the testsuite either. Feel free to
commit this fix,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88047
--- Comment #2 from Dominique d'Humieres ---
The following patch restores the errors
--- ../_clean/gcc/fortran/match.c 2018-11-01 22:06:33.0 +0100
+++ gcc/fortran/match.c 2018-11-15 22:47:01.0 +0100
@@ -1374,7 +1374,8 @@
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88047
Dominique d'Humieres changed:
What|Removed |Added
Keywords||ice-on-invalid-code