https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99642
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code Status|UNCONFIRMED |NEW CC| |msebor at gcc dot gnu.org Last reconfirmed| |2021-03-18 Ever confirmed|0 |1 --- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> --- Confirmed. The assert below fails: /* For implicit instantiations of a primary template look up the primary or partial specialization and use it as the expected class-key rather than using the class-key of the first reference to the instantiation. The primary must be (and inevitably is) at index zero. */ tree spec = specialization_of (type); cdlguide = class2loc.get (spec); gcc_assert (cdlguide != NULL);