This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/59939] No warning on signedness changes caused by implicit conversion


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

--- Comment #7 from Zhendong Su <su at cs dot ucdavis.edu> ---
Andrew, this actually feels to me more like a static type checking issue, i.e.,
whether the code is dead or not isn't all that relevant here. The important
thing is that the function fn1 takes two unsigned int's, but given two int's
instead (which should be warned no matter whether we have 1 or 0). 

Or perhaps not?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]