From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7B65B3858CDA; Mon, 26 Sep 2022 08:18:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7B65B3858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664180321; bh=4FICeKT1NpUiFSYABSrIW6YgTy/Dkkgv+5M1fgtBmr0=; h=From:To:Subject:Date:From; b=csMBZYTH56hD0zYxLNwIrZCCP9r8ODX7DcRHv6VzvVE1VidCO7DfRYYm7nRifVjsY SDFw0gwmLdejG/N6GpoNg8w8Ww5rePP7FqTJxnsBRbkvxyu694z6MR9HLv691XPqkS 82u+0onUBQXIm6Cqn9JdR54+4aMJeM6/Gy7Xm3IU= From: "guojiufu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/107037] New: 541.leela_r compiling fail since r13-2779 Date: Mon, 26 Sep 2022 08:18:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: guojiufu at gcc dot gnu.org 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 bug_severity priority component assigned_to reporter target_milestone 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107037 Bug ID: 107037 Summary: 541.leela_r compiling fail since r13-2779 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: guojiufu at gcc dot gnu.org Target Milestone: --- When building 541.leela_r from spec2017, I encounter one error: include/c++/13.0.0/bitset: In instantiation of 'void std::_Base_bitset<_Nw>::_M_do_reset() [with long unsigned int _Nw =3D 7]': include/c++/13.0.0/bitset:1145:19: required from 'std::bitset<_Nb>& std::bitset<_Nb>::reset() [with long unsigned int _Nb =3D 441]' Playout.cpp:20:18: required from here include/c++/13.0.0/bitset:187:13: error: forming reference to reference type 'long unsigned int (&)[7]' 187 | for (_WordT& __w : _M_w) | ^~~ The command is=20 g++ -std=3Dc++03 -m64 -c -o Playout.o -DSPEC -DNDEBUG -I. -DSPEC_AUTO_SUPPRESS_OPENMP -Ofast -DSPEC_LP64 Playout.cpp This issue is also reproducible on -O3 or -O2. It seems compiling fine before commit r13-2779-9194c13909b72d23e58fee72864a2663b12f6b19.=