From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DBA90385DC00; Wed, 1 Apr 2020 17:41:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DBA90385DC00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1585762864; bh=GgIJn5WB785bjuC/WSH4k9mVoifaFwiu7V49CdFR24w=; h=From:To:Subject:Date:In-Reply-To:References:From; b=dqF60zKsOGutXOBFYOgCVXFAypp5/k3Wgy3XeAEVo/j02SVFcuwM3q9Cz4E8v4urr lZ8NMxmfpxW3l2xEI1rLEGqjsHSXvyV682XxgsWh7dHdJxtKKeyUweOnN4GOeJ2jrK ioignqVNFEI4BN7qN3/DGoNmSu0rGPFRwVCTPXdA= From: "nathan at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94426] [10 Regression] ICE in mangle_decl with -flto Date: Wed, 01 Apr 2020 17:41:04 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: ice-on-valid-code, lto X-Bugzilla-Severity: normal X-Bugzilla-Who: nathan at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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, 01 Apr 2020 17:41:05 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94426 --- Comment #5 from Nathan Sidwell --- Reduced testcase: template using Void =3D void; template bool Init (U); template bool VAR =3D Init ([] {}); template Void> Foo (T) {} void q () { Foo ([] {}); } bug.ii: At global scope: bug.ii:5:38: internal compiler error: in mangle_decl, at cp/mangle.c:3907 5 | template bool VAR =3D Init ([] {});=