[Bug fortran/39996] Double typing of function results not detected

janus at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu May 14 09:42:00 GMT 2009



------- Comment #2 from janus at gcc dot gnu dot org  2009-05-14 09:42 -------
Subject: Bug 39996

Author: janus
Date: Thu May 14 09:41:41 2009
New Revision: 147528

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147528
Log:
2009-05-14  Janus Weil  <janus@gcc.gnu.org>

        PR fortran/39996
        * decl.c (gfc_match_function_decl): Use gfc_add_type.
        * symbol.c (gfc_add_type): Better checking for duplicate types in
        function declarations. And: Always give an error for duplicte types,
        not just a warning with -std=gnu.


2009-05-14  Janus Weil  <janus@gcc.gnu.org>

        PR fortran/39996
        * gfortran.dg/func_decl_2.f90: Modified (replacing warnings by errors).
        * gfortran.dg/duplicate_type_2.f90: Ditto.
        * gfortran.dg/duplicate_type_3.f90: New.


Added:
    trunk/gcc/testsuite/gfortran.dg/duplicate_type_3.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/decl.c
    trunk/gcc/fortran/symbol.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/duplicate_type_2.f90
    trunk/gcc/testsuite/gfortran.dg/func_decl_2.f90


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39996



More information about the Gcc-bugs mailing list