re PR fortran/60526 (Accepts-invalid: Variable name same as type name)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 14 Feb 2016 17:08:44 +0000 (17:08 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 14 Feb 2016 17:08:44 +0000 (17:08 +0000)
commit1e6025b653fcfbdc34d40ea96bf2336faf0806dd
treebdbc1c289400224e3b9eb7abffb3b3882b394840
parentd33082792f5c74b212dd44f62aaabf223a692d25
re PR fortran/60526 (Accepts-invalid: Variable name same as type name)

2016-02-14  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/60526
* decl.c (build_sym):  If the name has already been defined as a
type, it has a symtree with an upper case letter at the beginning.
If such a symtree exists, issue an error and exit.  Don't do
this if there is no corresponding upper case letter.

2016-02-14  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/60526
* gfortran.dg/type_decl_4.f90:  Reinstated.

From-SVN: r233413
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/type_decl_4.f90 [new file with mode: 0644]