From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A2F153858C74; Mon, 3 Oct 2022 18:42:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A2F153858C74 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664822540; bh=1efTDunQ6SjmI276ldVr2nDoc64KpF9fkUxZb2uQQWA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZtNsNghK4pkoISNlgn0GM2AkbOYbaGdoP0K8Ew9TvxpzOc67i3VfcQjd7oliqfhxX vTPoe92cG/gd4Wc54wWSmVeZ/ZNhhssJQ+Gei3vNrms+6uN3Fa038NZrUHEKrSV2QA KmYJb1R+psFvjQ/uhwII8sIBkl3+zq48XKZTvBoM= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107123] Size deduction for vector size in template fails Date: Mon, 03 Oct 2022 18:42:20 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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: 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 #1 from Andrew Pinski --- Yes GCC does not do deduction on the vector size attribute currently. This part of the extension is not documented one way or the other either because nobody thought of this right now. One easy way around this is to wrap the vector type in class and use that c= lass always. It would be nice to standardized the vector attribute.=