bugTiny C Compiler - Bugs: bug #47982, Wrong implicit casting in (? : )...


bug #47982: Wrong implicit casting in (? : ) expression

Submitted by:  None
Submitted on:  Sun 22 May 2016 05:23:23 PM UTC  
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Sun 22 May 2016 05:23:23 PM UTC, original submission:  

Expression (0 ? 0u: -1) must have value of maximal unsigned because of rules for implicit integer casting in conditional expression.
But tcc produce value -1



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #37229:  cond-expr-implicit-int-uint-cast.c added by None (95B - text/x-csrc)


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.




Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2016-05-22 None Attached File- => Added cond-expr-implicit-int-uint-cast.c, #37229

Back to the top

Powered by Savane 3.5