re PR fortran/25901 (overloaded function is rejected)
authorPaul Thomas <pault@gcc.gnu.org>
Mon, 23 Jan 2006 05:07:52 +0000 (05:07 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Mon, 23 Jan 2006 05:07:52 +0000 (05:07 +0000)
commitcda7004bb4836fa9e3c7f892c0fc0de3c81d176f
tree8ebb2f15eb3f79dbe90e03b880a60ebda46f94d8
parent0743efe14908ff3e39f14de636d1526e4813b4ca
re PR fortran/25901 (overloaded function is rejected)

2005-01-23  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/25901
* decl.c (get_proc_name): Replace subroutine and function
attributes in "already defined" test by the formal arglist
pointer being non-NULL.

Fix regression in testing of admissability of attributes.
* symbol.c (gfc_add_attribute): If the current_attr has
non-zero intent, do not do the check for a dummy being
used.
* decl.c (attr_decl1): Add current_attr.intent as the
third argument in the call to gfc_add_attribute.
* gfortran.h: Add the third argument to the prototype
for gfc_add_attribute.

2005-01-23  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/25901
* gfortran.dg/internal references_2.f90: New test.

Fix regression in testing of admissability of attributes.
* gfortran.dg/intent_used_1.f90: New test.

From-SVN: r110106
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/fortran/gfortran.h
gcc/fortran/symbol.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/intent_used_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/internal_references_2.f90 [new file with mode: 0644]
libgomp/Makefile.in
libgomp/aclocal.m4
libgomp/testsuite/Makefile.in