https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104050
Bug ID: 104050 Summary: [12 Regression] [coroutines] '-fcompare-debug' failure w/ -std=c++20 -O1 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- Created attachment 52206 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52206&action=edit Testcase g++ 12.0.0 20220109 snapshot (g:49d73c9fb644673323845efebfe6b3106e70af8a) fails -fcompare-debug check when compiling the attached testcase, partially reduced from gcc/testsuite/g++.dg/coroutines/pr94288.C, w/ -std=c++20 -O1: % g++-12.0.0 -std=c++20 -O1 -fcompare-debug -save-temps -c mfytqxkl.cc g++-12.0.0: error: mfytqxkl.cc: '-fcompare-debug' failure --- mfytqxkl.cc.gkd 2022-01-16 21:34:28.236246664 +0700 +++ mfytqxkl.gk.cc.gkd 2022-01-16 21:34:29.276177012 +0700 @@ -297,7 +297,7 @@ 0: short unsigned int _Coro_resume_index; 36: bool _Coro_frame_needs_free; 5: bool _Coro_initial_await_resume_called; -20: struct vector D.30656_1_2; +20: struct vector D.30658_1_2; 9: struct task Aw0_1_2; 28: struct final_awaitable Fs_1_3; 17: struct coroutine_handle _Coro_actor_continue;