------- Comment #1 from janus at gcc dot gnu dot org 2009-10-09 12:17 ------- The problem here is that the error check comes too late: It should happen already before the call to encapsulate_class_symbol.
This is effectively fixed by the patch for PR41629: http://gcc.gnu.org/ml/fortran/2009-10/msg00088.html -- janus at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- 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-10-09 12:17:50 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41618