https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87616
Bug ID: 87616 Summary: Compiler segfaults on dependent templated friend Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mickg at mickg dot net Target Milestone: --- Sample that does not compile : struct foo{}; template <class A, class B> struct friender { using cls=foo; }; class bar { template <class X, class Y> friend class friender<X,Y>::cls; int hidden; }; int main() { bar b; }