This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc 4.3.0, -Wconversion and conditional operator
- From: "Manuel López-Ibáñez" <lopezibanez at gmail dot com>
- To: "Andriy Gapon" <avg at icyb dot net dot ua>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 19 Sep 2008 18:09:11 +0200
- Subject: Re: gcc 4.3.0, -Wconversion and conditional operator
- References: <48D3C5B6.6090000@icyb.net.ua>
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.