diff options
author | Tobias Burnus <burnus@net-b.de> | 2012-12-22 18:27:03 +0100 |
---|---|---|
committer | Tobias Burnus <burnus@gcc.gnu.org> | 2012-12-22 18:27:03 +0100 |
commit | 4038d0fb1f156f136ea94f8fa17f91150da9cbbd (patch) | |
tree | 3e9fad862f952a753852e5104f37ce2f18774e5f /gcc/fortran/module.c | |
parent | 409a5e7eb4cca107037fafa4a7eea92603edb83d (diff) | |
download | gcc-4038d0fb1f156f136ea94f8fa17f91150da9cbbd.zip gcc-4038d0fb1f156f136ea94f8fa17f91150da9cbbd.tar.gz gcc-4038d0fb1f156f136ea94f8fa17f91150da9cbbd.tar.bz2 |
re PR fortran/55763 (Issues with some simpler CLASS(*) programs)
2012-12-21 Tobias Burnus <burnus@net-b.de>
PR fortran/55763
* module.c (mio_component): Don't skip _hash's initializer.
* resolve.c (resolve_select_type): Add an assert.
* trans-expr.c (gfc_conv_procedure_call): Handle
INTENT(OUT) for UNLIMIT_POLY.
2012-12-21 Tobias Burnus <burnus@net-b.de>
PR fortran/55763
* gfortran.dg/unlimited_polymorphic_6.f90: New.
From-SVN: r194696
Diffstat (limited to 'gcc/fortran/module.c')
-rw-r--r-- | gcc/fortran/module.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/fortran/module.c b/gcc/fortran/module.c index 168f933..a797f24 100644 --- a/gcc/fortran/module.c +++ b/gcc/fortran/module.c @@ -2603,7 +2603,8 @@ mio_component (gfc_component *c, int vtype) c->attr.class_ok = 1; c->attr.access = MIO_NAME (gfc_access) (c->attr.access, access_types); - if (!vtype || strcmp (c->name, "_final") == 0) + if (!vtype || strcmp (c->name, "_final") == 0 + || strcmp (c->name, "_hash") == 0) mio_expr (&c->initializer); if (c->attr.proc_pointer) |