[Fortran] Fix name conflict check for use-assoc (PR 92736)
authorTobias Burnus <tobias@codesourcery.com>
Tue, 14 Apr 2020 11:57:52 +0000 (13:57 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Tue, 14 Apr 2020 11:57:52 +0000 (13:57 +0200)
commit36c3edb1e39c74e2705efac738a389b5597d9d88
treedcdde80e293fc0bb3cc264d9ae50151ef19b216a
parent3b0e49a52e1884b501861c128b0a98dec50bdd2e
[Fortran] Fix name conflict check for use-assoc (PR 92736)

* module.c (gfc_match_use): Fix name-conflict check for use-associating
the same symbol again in a submodule.

* gfortran.dg/use_rename_10.f90: New.
* gfortran.dg/use_rename_11.f90: New.
gcc/fortran/ChangeLog
gcc/fortran/module.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/use_rename_10.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/use_rename_11.f90 [new file with mode: 0644]