From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8434E3850415; Sat, 6 Feb 2021 06:20:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8434E3850415 From: "jason at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBsdG8vOTY1OTFdIFs4LzkvMTAvMTEgUmVncmVzc2lvbl0g?= =?UTF-8?B?SUNFIHdpdGggLWZsdG89YXV0byBhbmQgLU8xOiB0cmVlIGNvZGUg4oCYdHlw?= =?UTF-8?B?ZW5hbWVfdHlwZeKAmSBpcyBub3Qgc3VwcG9ydGVkIGluIExUTyBzdHJlYW1z?= Date: Sat, 06 Feb 2021 06:20:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 10.1.1 X-Bugzilla-Keywords: lto X-Bugzilla-Severity: normal X-Bugzilla-Who: jason at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: component assigned_to bug_status 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: Sat, 06 Feb 2021 06:20:11 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96591 Jason Merrill changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c++ |lto Assignee|jason at gcc dot gnu.org |unassigned at gcc d= ot gnu.org Status|ASSIGNED |NEW --- Comment #5 from Jason Merrill --- (In reply to Arseny Solokha from comment #4) > Is it somehow related to PR83997? Maybe even a duplicate? No, not a duplicate. Reduced a bit more: 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 X::type; }; template constexpr simd_t fill(typename simd_traits::scalar_type const scalar) { return simd_t{scalar}; } using score_type =3D typename builtin_simd::type; // Uncommenting this makes it work: // const simd_traits::scalar_type n =3D 8; score_type data[1]{fill(8)}; The difference from uncommenting that line seems to be that then free_lang_data_in_type is called for simd_traits::scalar_type. So the prob= lem seems to be that find_decls_types isn't finding scalar_type in the vector in the array. So changing component to LTO and unassigning myself. Feel free= to change it back if it seems appropriate.=