https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95933
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Until Bar<n>::Foo is instantiated, no error is required. There is another bug about this already too.
pinskia at gcc dot gnu.org via Gcc-bugs Mon, 23 Aug 2021 14:17:16 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95933
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Until Bar<n>::Foo is instantiated, no error is required. There is another bug about this already too.