This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/38918] compile time error for DATA of NULL() to pointer structure component
- From: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jan 2009 12:53:11 -0000
- Subject: [Bug fortran/38918] compile time error for DATA of NULL() to pointer structure component
- References: <bug-38918-15620@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from pault at gcc dot gnu dot org 2009-01-24 12:53 -------
Created an attachment (id=17174)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17174&action=view)
Fix for the PR -
OK'd http://gcc.gnu.org/ml/fortran/2009-01/msg00297.html
2009-01-22 Paul Thomas <pault@gcc.gnu.org>
PR fortran/38917
* expr.c (gfc_check_assign): Allow pointer components when
checking for NULL.
PR fortran/38918
* resolve.c (check_data_variable): Treat pointer arrays with
scalars.
2009-01-22 Paul Thomas <pault@gcc.gnu.org>
PR fortran/38917
PR fortran/38918
* gfortran.dg/data_pointer_1.f90: New test.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38918