https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86913
--- Comment #1 from Yavor Doganov ---
I cannot reproduce with GCC master, 14.2.0 and 12.2.0 so I conclude that this
bug has been fixed, perhaps as a side effect of fixing another issue.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119117
--- Comment #6 from Yavor Doganov ---
(In reply to Andrew Pinski from comment #4)
> >This got broken by the C2y if declarations implementation (PR c/117019,
> >commit 440be01).
>
> No it was broken before that; just now exposed by it because i
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119117
--- Comment #5 from Yavor Doganov ---
Created attachment 61005
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61005&action=edit
Proposed patch
Tested on powerpc64le-linux-gnu and x86_64-linux-gnu.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119117
Bug ID: 119117
Summary: Implementation of "if declarations" makes instance
variables unknown under certain conditions
Product: gcc
Version: 15.0
Status: UNCONFIRMED