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/45358] =+ oddness



------- Comment #1 from jakub at gcc dot gnu dot org  2010-08-20 15:23 -------
=+ in x =+ y; isn't one token, but two, it is the same as if you write
x = + y ;
And, unary + is standard C unary operator:
The result of the unary + operator is the value of its (promoted) operand. The
integer promotions are performed on the operand, and the result has the
promoted type.

So, I don't think there is anything that should be warned about, it is normal
valid C.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45358


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