https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119575

--- Comment #2 from kargls at comcast dot net ---
(In reply to kargls from comment #1)
> By placing line numbers on every line of the program, once cannot simply
> copy and
> paste the code into a file for testing.  The code as written contains invalid
> statement labels.

After fixing the code, the issue is associated with a NULL pointer dereference
in class.cc(gfc_add_component_ref)

  gfc_ref **tail = &(e->ref);
  gfc_ref *ref, *next = NULL;
  gfc_symbol *derived = e->symtree->n.sym->ts.u.derived;

Bother e->ref and e->symtree are NULL.  I don't know how to fix the former.
For the latter, one may be able to use *derived->e->ts.u.derived.

Reply via email to