[Bug fortran/82993] ICE in free_expr0, at fortran/expr.c:445
kargl at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Dec 25 23:29:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82993
--- Comment #5 from kargl at gcc dot gnu.org ---
(In reply to kargl from comment #4)
> It seems one of my recent patches may have fixed this one.
>
> % gfcx d.f90
> d.f90:5:30:
>
> 5 | type(t), parameter :: z = 1
> | 1
> Error: Incompatible initialization between a derived type entity and an
> entity with 'INTEGER(4)' type at (1)
I get the same error on branch-7 and branch-8, so the patch
has been back ported.
Likely fixed with
branch-7 r267180
branch-8 r267178
trunk r267177
r267177 | kargl | 2018-12-15 14:53:26 -0800 (Sat, 15 Dec 2018) | 11 lines
2019-12-15 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/88138
* decl.c (variable_decl): Check that a derived isn't being assigned
an incompatible entity in an initialization.
More information about the Gcc-bugs
mailing list