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

--- Comment #19 from Paul Thomas <pault at gcc dot gnu.org> ---
fferent types but who knows.
> 
> I suggest to remove the caching from gfc_get_dtype.

Indeed, it is the caching that is the source of the problem. I reverted the fix
and removed the caching from gfc_get_dtype; lo and behold, the problem was
gone.

I will investigate such use as there might be of the cached dtype before
committing any changes to trans-types.c but I rather suspect that this was an
underlying (cached?) bug waiting to hit us on the nose.

Thanks for pointing this out.

Paul

Reply via email to