------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-11 14:34 ------- (In reply to comment #12) > Invalid? So whenever behavior is undefined by the C standard, would it be ok > to delete the user's harddrive as well? This is ridiculous - fix the bug.
It is undefined which means anything can happen. The comment about delete the user's harddrive is mainly a joke about the C standard says about this. There is no bug here except in your code as the variable is passed as an int and not as a char. To fix your code, replace char with int and it works just fine. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10719