[Bug fortran/83113] Bogus "duplicate allocatable attribute" error for submodule character function
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Feb 10 18:01:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83113
--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Andrew Benson <abensonca@gcc.gnu.org>:
https://gcc.gnu.org/g:7848054c68bad6e2aa40cb59f77cc99bd8448d52
commit r10-6560-g7848054c68bad6e2aa40cb59f77cc99bd8448d52
Author: Andrew Benson <abenson@carnegiescience.edu>
Date: Mon Feb 10 17:59:34 2020 +0000
Fix bogus duplicate attribute errors for submodule functions.
PR fortran/83113
* array.c: Do not attempt to set the array spec for a submodule
function symbol (as it has already been set in the corresponding
module procedure interface).
* symbol.c: Do not reject duplicate POINTER, ALLOCATABLE, or
DIMENSION attributes in declarations of a submodule function.
* gfortran.h: Add a macro that tests for a module procedure in a
submodule.
* gfortran.dg/pr83113.f90: New test.
More information about the Gcc-bugs
mailing list