2008-03-24 Paul Thomas <pault@gcc.gnu.org>
commit9277c29163a191a996ae2c3301a5bd2246544aae
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 24 Mar 2008 19:11:24 +0000 (24 19:11 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 24 Mar 2008 19:11:24 +0000 (24 19:11 +0000)
treec592d85b7b3c57a66640b4f761c2ec48e47be498
parentb25f004c1359efb887da744b855285c541c868ff
2008-03-24  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/34813
* resolve.c (resolve_structure_cons): It is an error to assign
NULL to anything other than a pointer or allocatable component.

PR fortran/33295
* resolve.c (resolve_symbol): If the symbol is a derived type,
resolve the derived type.  If the symbol is a derived type
function, ensure that the derived type is visible in the same
namespace as the function.

2008-03-24  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/34813
* gfortran.dg/null_3.f90 : New test

PR fortran/33295
* gfortran.dg/module_function_type_1.f90 : New test

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133488 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/module_function_type_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/null_3.f90 [new file with mode: 0644]