[Bug fortran/82904] [8/9/10 Regression] ICE in make_ssa_name_fn, at tree-ssanames.c:261
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Dec 2 08:13:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82904
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to anlauf from comment #6)
> Do I understand Richard's comment correctly that we should get for
>
> character(:), allocatable, save :: x
>
> in the dump sth. like:
>
> static integer(kind=4) _F.x = 0;
> static character(kind=1)[1:_F.x] * x = 0B;
>
> i.e. the length should be initialized to 0?
No, the issue is the [1:_F.x], the frontend needs to place an explicit
DECL_EXPR in the IL (where the static initialization / allocation happens)
which will be the place the middle-end "evaluates" the size expression.
More information about the Gcc-bugs
mailing list