[Patch, Fortran] PR 37835 -fno-automatic does not work for derived types with default initalizer
Dominique d'Humières
dominiq@lps.ens.fr
Fri Jan 18 17:43:00 GMT 2019
Hi all!
The patch for gcc/fortran/resolve.c is the modernized version of Paul’s patch in comment 4.
It causes some regressions due to "Duplicate SAVE » warnings.
They are silenced by the patch for gcc/fortran/symbol.c unless -pedantic is used as documented
in the change for gcc/fortran/invoke.texi.
Is it OK for trunk?
TIA
Dominique
2019-01-18 Dominique d'Humieres <dominiq@gcc.gnu.org>
PR fortran/37835
* resolve.c (resolve_types): Add !flag_automatic.
* symbol.c (gfc_add_save): Silence warnings.
2019-01-18 Dominique d'Humieres <dominiq@gcc.gnu.org>
PR fortran/37835
* gfortran.dg/no-automatic.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-37835
Type: application/octet-stream
Size: 2076 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190118/edfa4b6b/attachment.obj>
More information about the Gcc-patches
mailing list