]> gcc.gnu.org Git - gcc.git/commit
re PR fortran/39996 (Double typing of function results not detected)
authorJanus Weil <janus@gcc.gnu.org>
Thu, 14 May 2009 09:41:41 +0000 (11:41 +0200)
committerJanus Weil <janus@gcc.gnu.org>
Thu, 14 May 2009 09:41:41 +0000 (11:41 +0200)
commit6de7294fd4a37431a5c9df578feca6fece431077
treeedbab0228a5042dccc8a06bfbb493111b0df876c
parente1a029634255e159dc6817b24b6bcc6497fa400c
re PR fortran/39996 (Double typing of function results not detected)

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.

From-SVN: r147528
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/fortran/symbol.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/duplicate_type_2.f90
gcc/testsuite/gfortran.dg/duplicate_type_3.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/func_decl_2.f90
This page took 0.07269 seconds and 5 git commands to generate.