From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19969 invoked by alias); 17 Apr 2012 10:56:35 -0000 Received: (qmail 19954 invoked by uid 22791); 17 Apr 2012 10:56:34 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 17 Apr 2012 10:55:48 +0000 From: "manu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/51033] generic vector subscript and shuffle support was not added to C++ Date: Tue, 17 Apr 2012 10:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: enhancement X-Bugzilla-Who: manu at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-04/txt/msg01369.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D51033 Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu.org --- Comment #11 from Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez 2012-04-17 10:54:58 UTC --- (In reply to comment #10) > Created attachment 27176 [details] > subscript >=20 > This patch (a simple copy of a paragraph from the C front-end) seems suff= icient > to add vector subscript support to the C++ front-end. At least, on the re= lated > testcases I could find in the testsuite (vector-init-2.c, > vector-subscript-[123].c), g++ produces the same results as gcc (some err= or > messages have different content, but the same meaning, and the carets poi= nt to > '[' in C and ']' in C++). If it is indeed a copy, you should move the code c-common.c and share it. T= he C-family FEs should share as much code as possible. Also, testcases that work on both languages, should move to testsuite/c-c++-common/