[Bug fortran/96024] [9/10/11 Regression] ICE in mio_name_expr_t, at fortran/module.c:2159

sgk at troutmask dot apl.washington.edu gcc-bugzilla@gcc.gnu.org
Sat Jul 4 14:24:25 GMT 2020


--- Comment #4 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
On Sat, Jul 04, 2020 at 09:29:49AM +0000, dominiq at lps dot ens.fr wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96024
> --- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> > The patch in PR 95025 fixes this issue.
> The patch fixes the ICE, but I get the cryptic error
> f951: Fatal Error: Writing module 'm' at line 15 column 14: Bad type in
> constant expression
> compilation terminated.

gfc_fatal_error() is used 17 times in module.c.  This
normally means that gfortran's error handling mechanism
is not available at the time the error occrurred.  It 
also be that in this case, the *.mod file and the namespace
is too corrupted to try to continue.

More information about the Gcc-bugs mailing list