[Bug fortran/96737] ICE when compiling module and submodule in same file with debug (-g)

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Aug 23 14:34:37 GMT 2020


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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Paul Thomas <pault@gcc.gnu.org>:

https://gcc.gnu.org/g:c4565031c8dc6b5289e36553e5cd937a91825953

commit r11-2809-gc4565031c8dc6b5289e36553e5cd937a91825953
Author: Paul Thomas <pault@gcc.gnu.org>
Date:   Sun Aug 23 15:34:27 2020 +0100

    This patch fixes PR96737. See the explanatory comment in the testcase.

    2020-08-23  Paul Thomas  <pault@gcc.gnu.org>

    gcc/fortran
            PR fortran/96737
            * trans-types.c (gfc_get_derived_type): Derived types that are
            used in submodules are not compatible with TYPE_CANONICAL from
            any of the global namespaces.

    gcc/testsuite/
            PR fortran/96737
            * gfortran.dg/pr96737.f90: New test.


More information about the Gcc-bugs mailing list