From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A496C385841F; Mon, 3 Oct 2022 19:10:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A496C385841F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664824238; bh=LmhJ+N1EMpvx71PsWy6ASiaPRJLO28SmXxvzwXeZMQI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=UJUs0tMDCYB73agrA9zTbBT0RDMvIdtUKVl2L6VIV5mUs6tCuFuzD4QhoQHj0eA4V 9BbmsPH3yxtiedI5LDmAMJIHIeQj2kwvuAdcs+tPDRB+dG4EWr3Q21FGOOODk2I4rG rp649/i9sYjNfesAouzHy4aM/yy+o5aOSqVlvdC4= From: "milasudril at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107123] Size deduction for vector size in template fails Date: Mon, 03 Oct 2022 19:10:38 +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: 12.2.1 X-Bugzilla-Keywords: documentation X-Bugzilla-Severity: enhancement X-Bugzilla-Who: milasudril at gmail dot com 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: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107123 --- Comment #2 from milasudril at gmail dot com --- > It would be nice to standardized the vector attribute. Good features to have: constexpr std::size (and also std::ssize) template inline constexpr std::is_simd_type_v =3D ...; namespace std { template struct simd_element_type{ using type =3D ...; }; template simd_element_type_t =3D typename simd_element_type::type; } I belive the working paper is p2638r0 https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2638r0.pdf=