https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39906
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Even more shocking this works on all compilers: int t1; Derived::Kind<char>::type &t = t1; Base::Kind<char>::type &t2 = t1;
pinskia at gcc dot gnu.org via Gcc-bugs Fri, 27 Aug 2021 19:22:09 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39906
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Even more shocking this works on all compilers: int t1; Derived::Kind<char>::type &t = t1; Base::Kind<char>::type &t2 = t1;