This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: vector comparisons in C++
On Sep 13, 2012, at 8:47 AM, Marc Glisse <marc.glisse@inria.fr> wrote:
>> What was the reluctance? It seems clear to me that if we support the type, we should support these operations.
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51033
>
> In comments 1 and 7, Richard Guenther didn't seem too enthusiastic about any vector-related extension to the C++ front-end.
C++, as designed, wants to be a proper super set of C (not that it is, or ever will be), so, in general, it wants things that work in C to also work in C++. Richard is right there are more 2,3 and 4 features at a time interaction problems that make C++ support in general for any new feature tend to be slightly non-trivial, but that, while true, I don't think should dissuade us. Now, we might recommend people use some better, C++ish to solve their problems, but, for people that just want existing C code to just compile as C++ code… having the support is nice.