------- Comment #5 from gurganbl at rose-hulman dot edu  2006-07-26 11:42 
-------
That would be a problem in assignment, not in the conditional. Additionally, if
I do unsigned int baz = 0;
signed int bar = -1;
baz = bar;

I get no warning. I agree with what you say about there being a problem and
what the problem is, but it should give the same warning as for the above code.
Currently, the ?: syntax gives a misleading warning since the problem is not in
the conditional but in the assignment and strictly having the assignment
problem is not generating a warning.


-- 

gurganbl at rose-hulman dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


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

Reply via email to