------- Comment #3 from janus at gcc dot gnu dot org 2009-12-01 09:11 ------- This simple patch fixes comment #0 (but not comment #1):
Index: gcc/fortran/trans-expr.c =================================================================== --- gcc/fortran/trans-expr.c (revision 154840) +++ gcc/fortran/trans-expr.c (working copy) @@ -1555,6 +1555,10 @@ select_class_proc (gfc_se *se, gfc_class_esym_list /* This case has already been added. */ if (elist->derived == NULL) goto free_elist; + + /* Skip abstract base types. */ + if (elist->derived->attr.abstract) + goto free_elist; /* Run through the chain picking up all the cases that call the same procedure. */ -- janus at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |damian at rouson dot net AssignedTo|unassigned at gcc dot gnu |janus at gcc dot gnu dot org |dot org | Status|UNCONFIRMED |ASSIGNED Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2009-12-01 09:11:50 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42144