https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69836
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I wonder if this is just invalid code but no diagnostic required as state changes inside the scope of TemplateObject.
pinskia at gcc dot gnu.org via Gcc-bugs Tue, 07 Dec 2021 11:01:16 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69836
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I wonder if this is just invalid code but no diagnostic required as state changes inside the scope of TemplateObject.