https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121060
Paul Thomas <pault at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |pault at gcc dot gnu.org --- Comment #3 from Paul Thomas <pault at gcc dot gnu.org> --- Created attachment 61862 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61862&action=edit Tentative fix for the PR This patch, at very least, does no harm since it avoids the gcc_assert :-) It works because the ASSOCIATE construct attempts to match expressions during parsing. At this time, generic typebound procedures have not been resolved and so the specific TBP is not available. By returning NULL, the matching is deferred to resolution, when gfc_current_ns->resolved == -1 and so should succeed. It fixes the problem and regtests OK. I will think about it this evening and, if I have convinced myself, will package the patch up for submission tomorrow. Regards Paul