https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72507
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2016-07-26 00:00:00 |2021-7-27 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Looks like we are not instantiating A<int>::t unless you use it directly. That is if we add: int r = A<int>::t; The program is rejected as expected.