Hi, this looks strange. I have made a test with gcc 4.03. The assertation was thrown correctly. So, is this only with gcc > 4.1? It seems that the interpretation of the standard was in gcc 4.03 "better".
~$ ./a.out 200 100 a.out: test.c:5: foo: Assertion `(int)(a+100) > 0' failed. Aborted [EMAIL PROTECTED]:~$ gcc --version gcc (GCC) 4.0.3 (Ubuntu 4.0.3-1ubuntu5) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Regards Patrick _______________________________________________ Full-Disclosure - We believe in it. Charter: http://lists.grok.org.uk/full-disclosure-charter.html Hosted and sponsored by Secunia - http://secunia.com/
