This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51033] generic vector subscript and shuffle support was not added to C++
- From: "marc.glisse at normalesup dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 17 Apr 2012 11:59:12 +0000
- Subject: [Bug c++/51033] generic vector subscript and shuffle support was not added to C++
- Auto-submitted: auto-generated
- References: <bug-51033-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51033
--- Comment #12 from Marc Glisse <marc.glisse at normalesup dot org> 2012-04-17 11:59:12 UTC ---
(In reply to comment #11)
> 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.
I agree on the principle. If more code was shared, C++ would already support
this feature ;-)
On the other hand, here I am copying a small block of code in the middle of a
function. Making just that paragraph common wouldn't make much sense imho.
Factoring most of (cp_)build_array_ref might make sense, but requires someone
with a better understanding of the FEs, because there are slight differences
that may or may not be relevant.