https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77869
Bug ID: 77869 Summary: ICE on a code piece Product: gcc Version: 6.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ab at fmap dot me Target Milestone: --- Created attachment 39758 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39758&action=edit test.cpp This piece of code (minimized as far as I tried) causes a segfault on GCCs 6.2.0 and 6.2.1. Clang compiles the piece correctly. I'm not sure what's going on here -- it seems related to a friend class when the class name is typedef'd in the parent with involvement of templates. If there's anything more that is helpful to nail this bug down, I'll be happy to help!