https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70495
Andrew Pinski changed:
What|Removed |Added
Target Milestone|--- |7.0
Status|NEW
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70495
--- Comment #8 from Andrew Pinski ---
Seems fixed in GCC 7+. I cannot figure out what patch would have changed this
though.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70495
András changed:
What|Removed |Added
Version|5.3.0 |6.1.0
--- Comment #7 from András ---
Presents
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70495
--- Comment #6 from Jonathan Wakely ---
http://en.cppreference.com/w/cpp/language/implicit_cast#Integral_promotion
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70495
--- Comment #5 from András ---
@Jonathan: could you, please, give me a link, which explains why this
"conversion to int" takes place (where it comes from)?
Thanks!
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70495
--- Comment #4 from Jonathan Wakely ---
(In reply to András from comment #3)
> > b+b has type int
> Note: this does not give the warning. You can see the linked example for
> more details.
I know, but b+b+b adds b to an int and still produces an
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70495
--- Comment #3 from András ---
> b+b has type int
Note: this does not give the warning. You can see the linked example for more
details.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70495
Richard Biener changed:
What|Removed |Added
Keywords||diagnostic
Status|UNCONFIRM
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70495
--- Comment #1 from Jonathan Wakely ---
b+b has type int