From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D7CB53858D3C; Wed, 16 Feb 2022 11:15:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D7CB53858D3C From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/104564] New: '-fcompare-debug' failure w/ -std=c++20 -O1 -fharden-conditional-branches -fopenacc -gno-statement-frontiers Date: Wed, 16 Feb 2022 11:15:33 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: compare-debug-failure X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2022 11:15:34 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104564 Bug ID: 104564 Summary: '-fcompare-debug' failure w/ -std=3Dc++20 -O1 -fharden-conditional-branches -fopenacc -gno-statement-frontiers Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: compare-debug-failure Severity: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- Target: aarch64-linux-gnu gcc 12.0.1 20220213 snapshot (g:58aeb75d4097010ad9bb72b964265b18ab284f93) f= ails -fcompare-debug check when compiling the following testcase, partially redu= ced from libstdc++-v3/testsuite/25_algorithms/inplace_merge/1.cc, w/ -std=3Dc++= 20 -O1 -fharden-conditional-branches -fopenacc -gno-statement-frontiers: #include #include typedef __gnu_test::test_container container; void test1() { int array[] =3D {}; container con2(array, array); std::inplace_merge(con2.begin(), con2.begin(), con2.end()); } % aarch64-linux-gnu-g++-12.0.1 -std=3Dc++20 -O1 -fcompare-debug -fharden-conditional-branches -fopenacc -gno-statement-frontiers -c bdxhor9= 2.cc aarch64-linux-gnu-g++-12.0.1: error: bdxhor92.cc: '-fcompare-debug' failure It is very fragile, even adding -save-temps makes the failure disappear, so= I could not reduce it any further. If I get the dumps right, the difference starts in einline.=