This is the mail archive of the gcc-patches@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]

[Patch, Fortran] PR 57639: [OOP] ICE with polymorphism (and illegal code)


Hi all,

here is a straightforward patch for an ICE-on-invalid problem, which
basically adds some checks for 'class_ok'.

Regtested on x86_64-unknown-linux-gnu. Ok for trunk?

Cheers,
Janus


2013-07-24  Janus Weil  <janus@gcc.gnu.org>

    PR fortran/57639
    * interface.c (compare_parameter): Check for class_ok.
    * simplify.c (gfc_simplify_same_type_as): Ditto.

2013-07-24  Janus Weil  <janus@gcc.gnu.org>

    PR fortran/57639
    * gfortran.dg/unlimited_polymorphic_9.f90: New.

Attachment: pr57639.diff
Description: Binary data

Attachment: unlimited_polymorphic_9.f90
Description: Binary data


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