<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>This makes switch statements like the following compile:<br><br>int f1(char c) { switch(c) { case 256: case 0: return 1; } return 0; }<br>int f2(unsigned char c) { switch(c) { case 256: case 0: return 1; } return 0; }<br>int f3(char c) { switch(c) { case 255 ... 256: case 0: return 1; } return 0; }<br>int f3(unsigned char c) { switch(c) { case 255 ... 256: case 0: return 1; } return 0; }<br><br>The condition in the switch statement undergoes integer promotions, therefore the above should compile, but doesn't. This also adds a warning which tells the user when a case can't be reached.<br>                                     </div></body>
</html>