[Bug c++/51033] generic vector subscript and shuffle support was not added to C++

manu at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 17 10:56:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51033

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu.org

--- Comment #11 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2012-04-17 10:54:58 UTC ---
(In reply to comment #10)
> Created attachment 27176 [details]
> subscript
> 
> This patch (a simple copy of a paragraph from the C front-end) seems sufficient
> to add vector subscript support to the C++ front-end. At least, on the related
> testcases I could find in the testsuite (vector-init-2.c,
> vector-subscript-[123].c), g++ produces the same results as gcc (some error
> messages have different content, but the same meaning, and the carets point to
> '[' in C and ']' in C++).

If it is indeed a copy, you should move the code c-common.c and share it. The
C-family FEs should share as much code as possible.

Also, testcases that work on both languages, should move to
testsuite/c-c++-common/



More information about the Gcc-bugs mailing list