gcc 4.3.0, -Wconversion and conditional operator
Manuel López-Ibáñez
lopezibanez@gmail.com
Fri Sep 19 17:23:00 GMT 2008
2008/9/19 Andriy Gapon <avg@icyb.net.ua>:
>
> If I replace 'x' with a constant (0 or 1) in the condition, then the code
> compiles.
> I think gcc should be smarter here.
This should be fixed in any recent GCC 4.4. snapshot. But I cannot
test it myself to be sure, if someone would be so kind to check this
for me, I would appreciate it.
Cheers,
Manuel.
More information about the Gcc
mailing list