https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59795
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |98939 Alias| |cwg1837 Summary|Invalid use of "this" in a |[DR1837] Invalid use of |local class not diagnosed |"this" in a local class not | |diagnosed --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I actually think this is http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1837 Which means it has the following status: [Accepted at the November, 2020 meeting as part of paper P1787R6 and moved to DR at the February, 2021 meeting.] Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98939 [Bug 98939] [C++23] Implement P1787R6 "Declarations and where to find them"