This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/48095] [OOP] Invalid assignment to procedure pointer component not rejected


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48095

--- Comment #9 from janus at gcc dot gnu.org 2011-09-07 22:20:50 UTC ---
Author: janus
Date: Wed Sep  7 22:20:47 2011
New Revision: 178665

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=178665
Log:
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.

Added:
    trunk/gcc/testsuite/gfortran.dg/proc_ptr_comp_33.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/primary.c
    trunk/gcc/fortran/resolve.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/derived_constructor_comps_2.f90
    trunk/gcc/testsuite/gfortran.dg/impure_constructor_1.f90


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]