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

Paul Thomas <pault at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2023-11-09
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
             Blocks|                            |37336

--- Comment #2 from Paul Thomas <pault at gcc dot gnu.org> ---
It has been on my TODO list to partially revert the finalization of structure
and array constructors so that gfortran behaves like nagfor and only "knows"
about F2018. Finalization of constructors per se was removed in F2018 for very
good reasons!

I am still working on the CLASS variants of PR99065. Perhaps I should put that
on one side and clean up finalization?

@Sebastien - I will have to see what the -w switch does and why it should
affect the code behaviour. I can confirm the behaviour that you describe, as
Harald has already done. The F2003 and F2008 specific parts are blocked by:

if (!gfc_notification_std (GFC_STD_F2018_DEL) && .... Evidently switching off
the warnings with -w causes this to return true!

Cheers

Paul


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37336
[Bug 37336] [F03] Finish derived-type finalization

Reply via email to