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/30428] vector float | vector float is accepted



------- 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


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