]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/60526 (Accepts-invalid: Variable name same as type name)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 14 Feb 2016 12:23:59 +0000 (12:23 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 14 Feb 2016 12:23:59 +0000 (12:23 +0000)
commit60cb4ef5550eac9581ef1b36607b5fb297eddce2
treec03f8e2995de5d99633664ea80baa6f1fa4665c4
parentcdc647c36f1a5878f8ea518c6865010abd9d7e69
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, issue error and return false.

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

PR fortran/60526
* gfortran.dg/type_decl_4.f90:  New test.

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