From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 57968385BF86; Tue, 31 Mar 2020 15:25:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 57968385BF86 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1585668347; bh=5CfRWD/NGBK+fveuxvzQPZQklxn0urTqSytU/AIPT8I=; h=From:To:Subject:Date:From; b=Crswdxc+g1EYEjWOdxJlh+7vHQxKwWGnIdaFeY+sQ108OA2LT3T2muSx85n6zbP4p ZtKtJ7Fahm2kHat3kokD2O99FxtKbevGK8LYm9MG7COzsldknYvHCA439f3n+tpEB1 elsnHoBjl/4WVn8HirlRhueWMv+Iw61Wyg28Qq5A= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94426] New: [10 Regression] ICE in mangle_decl with -flto Date: Tue, 31 Mar 2020 15:25:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub 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 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: Tue, 31 Mar 2020 15:25:47 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94426 Bug ID: 94426 Summary: [10 Regression] ICE in mangle_decl with -flto Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org Target Milestone: --- The following testcase ICEs in mangle_decl with -O2 -flto starting with r10-7403-g517f5356bb0ca717f51e937be880e38a828edbf7, before that it has been rejected. template struct b { static constexpr int c =3D a; }; template using d =3D b; template auto ad() -> decltype(0); struct m { d())> e; }; struct n : m { typedef decltype(e) ab; }; template using aj =3D int; class C { void q(); int bq; }; template using bz =3D typename by::bz; namespace ca { struct r { template using bz =3D cc; }; template using cd =3D bz; namespace ce { struct s { template s(bj); }; struct t { bool c; }; t ci(void *, s); } template aj cl; template bool f; template constexpr bool destructible =3D n::ab ::c; template constexpr bool cp =3D destructible; template constexpr bool cq =3D cp; template constexpr bool copyable =3D cq; template constexpr bool cr =3D copyable; } namespace cs { using namespace ca; namespace ce { template using da =3D cy; } template using da =3D ce::da<>; template bool db =3D ca::ce::ci(nullptr, [](auto g) -> decltype(cl= >>) {}).c; template constexpr bool dd =3D cr; template constexpr bool de =3D dd; template constexpr bool h =3D de; template constexpr bool df =3D h; template bool dj =3D db; namespace ce { template struct H; } template using dn =3D ce::H
; template constexpr bool i =3D df; struct { template auto operator()(cx, j, cc, k) -> cd && dj, cc= >>> { while (1); } template void operator()(l, cc p2, k u) { (*this)(0, 0, p2, u); } } o; } int p; void C::q() { cs::o(bq, p, [] {}); }=