[Bug fortran/87937] [8/9 Regression] LHS reallocation broken inside "select type"

tomastrnka at gmx dot com gcc-bugzilla@gcc.gnu.org
Thu Nov 8 12:16:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87937

--- Comment #2 from Tomáš Trnka <tomastrnka at gmx dot com> ---
(In reply to Dominique d'Humieres from comment #1)
> > The code to allocate t%x is simply never generated.
> 
> How do you see that?
> 
> WORKSFORME on darwin.

Weird, I wouldn't expect the frontend to behave in a platform-specific way.
What version are you using to test? (8.2.0 is not affected. I haven't actually
tried it with 9, but AFAICS the code is the same.)

Running "gfortran -fdump-tree-original lhsalloc.f90" with and without the
associate_var check produces the two attached files, with the allocation
obviously missing from the bad one.


More information about the Gcc-bugs mailing list