[Bug fortran/16943] doubly defined function type causes error, even when types are the same

pault at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Jun 5 10:15:00 GMT 2006



------- Comment #3 from pault at gcc dot gnu dot org  2006-06-05 10:14 -------
Subject: Bug 16943

Author: pault
Date: Mon Jun  5 10:14:32 2006
New Revision: 114387

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114387
Log:
2006-06-05  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/14067
        * data.c (create_character_intializer): Add warning message
        for truncated string.

        PR fortran/16943
        * symbol.c : Include flags.h.
        (gfc_add_type): If a procedure and types are the same do not
        throw an error unless standard is less than gnu or pedantic.

        PR fortran/20838
        * parse.c (parse_do_block): Error if named block do construct
        does not have a named enddo.

        PR fortran/27655
        * check.c (gfc_check_associated): Pick up EXPR_NULL for pointer
        as well as target and put error return at end of function.

2006-06-05  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/14067
        * gfortran.dg/data_char_1.f90: Add messages for truncated
        strings.

        PR fortran/16943
        * gfortran.dg/func_decl_2.f90: New test.

        PR fortran/20838
        * gfortran.dg/do_2.f90: New test.

        PR fortran/27655
        * gfortran.dg/associated_3.f90: New test.


Added:
    branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/associated_3.f90
    branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/do_2.f90
    branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/func_decl_2.f90
Modified:
    branches/gcc-4_1-branch/gcc/fortran/ChangeLog
    branches/gcc-4_1-branch/gcc/fortran/check.c
    branches/gcc-4_1-branch/gcc/fortran/data.c
    branches/gcc-4_1-branch/gcc/fortran/parse.c
    branches/gcc-4_1-branch/gcc/fortran/symbol.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/data_char_1.f90


-- 


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



More information about the Gcc-bugs mailing list