This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/60526] [4.9/5 Regression] Accepts-invalid: Variable name same as type name


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

--- Comment #15 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Author: tkoenig
Date: Sun Feb 14 17:08:44 2016
New Revision: 233413

URL: https://gcc.gnu.org/viewcvs?rev=233413&root=gcc&view=rev
Log:
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.


Added:
    trunk/gcc/testsuite/gfortran.dg/type_decl_4.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/decl.c
    trunk/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]