https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115033
--- Comment #3 from Spenser ---
(In reply to Andrew Pinski from comment #1)
> Please attach the preprocessed source rather than just a snippet of code.
Sorry about that. Thought I added it when submitting the report, but I think
the file was to
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115033
--- Comment #2 from Spenser ---
Created attachment 58178
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58178&action=edit
Pre-processed C++ reproducer
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115033
Bug ID: 115033
Summary: Incorrect optimization of by-reference closure fields
by fre1 pass
Product: gcc
Version: 12.3.0
Status: UNCONFIRMED
Severity: normal