From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E843E386183F; Wed, 12 Aug 2020 15:58:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E843E386183F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1597247932; bh=VLWbsS1vfFGfmSWQS7ElclhxrWyyS+NZxQKPzskhqn0=; h=From:To:Subject:Date:From; b=SpRxNvB8QnhBkLn8kBcYcbDPxsdMh8NAeLb049VlWuifKshOJZMEXGan6m/7nqneK z8FBW910qLsI0dqMc4g+rLUvzDdt6w2TbhSoaqNeIQKAoGdUBA62k86MN+LD8LagJe YQZ/3tKm0lJVpRUVpm9hN8HgHPbmyLN4FaX6ZUZ8= From: "gcc-bugs at marehr dot dialup.fu-berlin.de" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBsdG8vOTY1OTFdIE5ldzogSUNFIHdpdGggLWZsdG89YXV0?= =?UTF-8?B?byBhbmQgLU8xOiB0cmVlIGNvZGUg4oCYdHlwZW5hbWVfdHlwZeKAmSBpcyBu?= =?UTF-8?B?b3Qgc3VwcG9ydGVkIGluIExUTyBzdHJlYW1z?= Date: Wed, 12 Aug 2020 15:58:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 10.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gcc-bugs at marehr dot dialup.fu-berlin.de 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 cc 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: Wed, 12 Aug 2020 15:58:53 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96591 Bug ID: 96591 Summary: ICE with -flto=3Dauto and -O1: tree code =E2=80=98typen= ame_type=E2=80=99 is not supported in LTO streams Product: gcc Version: 10.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de CC: marxin at gcc dot gnu.org Target Milestone: --- Hi gcc-team, I'm not sure if this is the right component. The following code: ```c++ template struct builtin_simd { using type [[gnu::vector_size(sizeof(scalar_t) * length)]] =3D scalar_t; }; struct simd_traits { using scalar_type =3D int; template using rebind =3D typename builtin_simd::type; }; template constexpr simd_t fill(typename simd_traits::scalar_type const scalar) { return simd_t{scalar}; } class Test { using score_type =3D typename builtin_simd::type; score_type data[1]{fill(8)}; }; struct TestFactoryBase { virtual Test *CreateTest() =3D 0; }; template struct TestFactoryImpl : public TestFactoryBase { Test *CreateTest() override { return new TestClass; } }; void MakeAndRegisterTestInfo(TestFactoryBase *factory); int main() { MakeAndRegisterTestInfo(new TestFactoryImpl); } ``` https://godbolt.org/z/55xTod produces with > > g++ -O1 -flto=3Dauto ice.cpp > during IPA pass: pure-const > ice.cpp:42:1: internal compiler error: tree code =E2=80=98typename_type= =E2=80=99 is not supported in LTO streams > 42 | } > | ^ > Please submit a full bug report, with preprocessed source if appropriate. > See for instructions. that error. Some notes: * removing "using rebind =3D typename builtin_simd::typ= e;" or * removing "constexpr" from constexpr simd_t fill(typename simd_traits::scalar_type const scalar)=20 will make it compile. Thank you!=