re PR fortran/48095 ([OOP] Invalid assignment to procedure pointer component not...
commit6a38e151893f941011281cbf93581f8605d18005
authorJanus Weil <janus@gcc.gnu.org>
Wed, 7 Sep 2011 22:20:47 +0000 (8 00:20 +0200)
committerJanus Weil <janus@gcc.gnu.org>
Wed, 7 Sep 2011 22:20:47 +0000 (8 00:20 +0200)
treec17f3e416f39964150f112a3944dd6bbee17ea63
parent601a5d76ca67442686facfb179aac2064003bb99
re PR fortran/48095 ([OOP] Invalid assignment to procedure pointer component not rejected)

2011-09-07  Janus Weil  <janus@gcc.gnu.org>

PR fortran/48095
* primary.c (gfc_match_structure_constructor): Handle parsing of
procedure pointers components in structure constructors.
* resolve.c (resolve_structure_cons): Check interface of procedure
pointer components. Changed wording of some error messages.

2011-09-07  Janus Weil  <janus@gcc.gnu.org>

PR fortran/48095
* gfortran.dg/derived_constructor_comps_2.f90: Modified.
* gfortran.dg/impure_constructor_1.f90: Modified.
* gfortran.dg/proc_ptr_comp_33.f90: New.

From-SVN: r178665
gcc/fortran/ChangeLog
gcc/fortran/primary.c
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/derived_constructor_comps_2.f90
gcc/testsuite/gfortran.dg/impure_constructor_1.f90
gcc/testsuite/gfortran.dg/proc_ptr_comp_33.f90 [new file with mode: 0644]