[Bug fortran/89943] Submodule functions are not allowed to have C binding
kargl at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Oct 17 16:31:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89943
--- Comment #5 from kargl at gcc dot gnu.org ---
Author: kargl
Date: Thu Oct 17 16:30:25 2019
New Revision: 277122
URL: https://gcc.gnu.org/viewcvs?rev=277122&root=gcc&view=rev
Log:
2019-10-17 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/83113
PR fortran/89943
decl.c (gfc_match_function_decl): Ignore duplicate BIND(C) for function
declaration in submodule. Implement at check for F2018 C1550.
(gfc_match_entry): Use temporary for locus, which allows removal of
one gfc_error_now().
(gfc_match_subroutine): Ignore duplicate BIND(C) for subroutine
declaration in submodule. Implement at check for F2018 C1550.
2019-10-17 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/83113
PR fortran/89943
* gfortran.dg/pr89943_1.f90: New test.
* gfortran.dg/pr89943_2.f90: Ditto.
* gfortran.dg/pr89943_3.f90: Ditto.
* gfortran.dg/pr89943_4.f90: Ditto.
Added:
branches/gcc-9-branch/gcc/testsuite/gfortran.dg/pr89943_1.f90
branches/gcc-9-branch/gcc/testsuite/gfortran.dg/pr89943_2.f90
branches/gcc-9-branch/gcc/testsuite/gfortran.dg/pr89943_3.f90
branches/gcc-9-branch/gcc/testsuite/gfortran.dg/pr89943_4.f90
Modified:
branches/gcc-9-branch/gcc/fortran/ChangeLog
branches/gcc-9-branch/gcc/fortran/decl.c
branches/gcc-9-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list