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


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

Submitter:  None
Submitted:  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
* Mandatory Fields

Add a New Comment Rich Markup

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


There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

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.13-c373.
Corresponding source code