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: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned 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

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

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 click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follows 1 latest change.

Date Changed By Updated Field Previous Value => Replaced By
Sun 22 May 2016 05:23:23 PM UTCNoneAttached File-=>Added cond-expr-implicit-int-uint-cast.c, #37229

Back to the top


Powered by Savane 3.1-cleanup1