[Bug fortran/87270] "FINAL" subroutine is called when compiled with "gfortran -O1", but not "gfortran -O0"
janus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Sep 20 16:35:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87270
janus at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |janus at gcc dot gnu.org,
| |pault at gcc dot gnu.org
--- Comment #2 from janus at gcc dot gnu.org ---
(In reply to Dominique d'Humieres from comment #1)
> This seems to have been fixed by revision r264008 on trunk
Seems the segfault is 'fixed' due to the fact that the finalizer is not called
on trunk any more. I get the output:
main: check 1
create: check 1
create: check 2
main: check 2
create: check 1
create: check 2
main: check 3
That's not a proper fix, of course. It rather seems that one bug (the segfault)
is hidden by another one (namely that the finalizer is not called) ?!?
More information about the Gcc-bugs
mailing list