https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119863
--- Comment #4 from Pilar Latiesa <pilarlatiesa at gmail dot com> --- Thanks Nathaniel. I could workaround this issue in my usecase by simply granting friendship to the particular instantiation that needed it.