This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/30428] vector float | vector float is accepted
- From: "tbptbp at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Aug 2007 19:42:23 -0000
- Subject: [Bug c/30428] vector float | vector float is accepted
- References: <bug-30428-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from tbptbp at gmail dot com 2007-08-23 19:42 -------
Subject: Re: vector float | vector float is accepted
On 23 Aug 2007 18:49:22 -0000, pinskia at gmail dot com
<gcc-bugzilla@gcc.gnu.org> wrote:
> Read the next line. That is where my quote is from. Please read the
> whole section before commenting. Because in fact before my patch, the
> documentation did not match the implementation.
"The operations behave like C++ valarrays. Addition is defined as the
addition of the corresponding elements of the operands. For example,
in the code below...
Subtraction, multiplication, division, and the logical operations
operate in a similar manner."
It's clearly and explicitly stated that
a) float is a legit underlying type
b) operators +, -, *, /, unary minus, ^, |, &, ~ are allowed
c) all those operators work the same way as the described piecewise addition
Do you expect anyone to read into the vague "behave like C++
valarrays" an embargo on "float | float"? I mean, if those vectors are
valarrays where is, say, the operator[]?
But i understand that under your rather peculiar interpretation
everything's fine. I will gladly move along.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30428