https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117422
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |accepts-invalid --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #1) > I think this might be a dup too since this is an old old bug. At least it is related to PR 99 which shows that sometimes we mention the template argument from the old one. Note also you can make this accepts invalid too: ``` template<typename Q> void f(); struct S { template<typename T> friend void f() { Q x; } }; int main() { f<int>(); } ```