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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2026-01-18
         Depends on|                            |123550

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I think this is the same issue in the end as PR 123550. Just exposed with a
different ICE.

Note giving g a return type of say void, we get an ICE in finish_stmt_expr
instead. And that makes the code valid.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123550
[Bug 123550] [16 Regression] ICE in maybe_push_to_top_level, at
cp/name-lookup.cc:8983 since r16-6352

Reply via email to