This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/51754] [OOP] ICE on valid with class arrays
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 21 Jan 2012 19:22:27 +0000
- Subject: [Bug fortran/51754] [OOP] ICE on valid with class arrays
- Auto-submitted: auto-generated
- References: <bug-51754-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51754
--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-01-21 19:22:27 UTC ---
(In reply to comment #1)
One additionally needs the following - otherwise, e.g., PR 41600 comment 1
fails at resolve time claiming that the type is not the same.
--- a/gcc/fortran/class.c
+++ b/gcc/fortran/class.c
@@ -385,2 +385,3 @@ gfc_build_class_symbol (gfc_typespec *ts, symbol_attribute
*attr,
fclass->attr.abstract = ts->u.derived->attr.abstract;
+ fclass->attr.class_ok = 1;
if (ts->u.derived->f2k_derived)