This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]