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

--- Comment #3 from Patrick Palka <ppalka at gcc dot gnu.org> ---
(In reply to Patrick Palka from comment #2)
> Seems to have started with r15-7508 "c++: -frange-for-ext-temps and reused
> temps [PR118856]".
> 
> Reduced runtime testcase:
-std=c++23 is sufficient to reproduce the segfault for the reduced testcase. 
With -Wall we also get a suspicious -Wmaybe-uninitialized warning:

<stdin>: In function ‘void foo()’:
<stdin>:29:18: warning: unused variable ‘r’ [-Wunused-variable]
<stdin>:29:50: warning: ‘<anonymous>.A (Workspace::*)()::__pfn’ may be used
uninitialized [-Wmaybe-uninitialized]
<stdin>:29:50: note: ‘<anonymous>’ declared here

Reply via email to