re PR fortran/34813 (ICE on incorrect nested type constructor (fold-const.c (fold_con...
authorPaul Thomas <pault@gcc.gnu.org>
Mon, 24 Mar 2008 19:11:24 +0000 (19:11 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Mon, 24 Mar 2008 19:11:24 +0000 (19:11 +0000)
commitc1203a704d375608c84ec0f1f4af250025374e85
treec592d85b7b3c57a66640b4f761c2ec48e47be498
parent50c91950d46fd5715ffd198227c50c7bce35f915
re PR fortran/34813 (ICE on incorrect nested type constructor (fold-const.c (fold_convert):2629))

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

From-SVN: r133488
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]