https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125519

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2026-06-16
                 CC|                            |mpolacek at gcc dot gnu.org
             Status|UNCONFIRMED                 |NEW
             Blocks|                            |123615

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed.  reflect_current_scope goes looking for a function right away and
overlooks that we're in a local class.  Perhaps we can look at
innermost_scope_kind () to see if we are in a (local) class or at a block scope
etc.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123615
[Bug 123615] (c++-reflection) - [meta-bug] reflection issue

Reply via email to