https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111544
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- MemoryManager* const fMemoryManager; So reduced: ``` template <int> struct a { int * const t; void f(); }; template <int n> void a<n>::f() { t = 0; } ``` Yes this is invalid code that GCC accepted before.