This is the mail archive of the gcc@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] | |
Thanks for the speedy reply. But why this code:
int a = 17, b = 16; a = a++ % 16;
Huh? Now you got me confused. Since it is an undefined behaviour, gcc is free to whatever it likes.
Though the answer given by the first and second examples show inconsistency in gcc in handling the undefined behaviour.
I can't forward to gmane.comp.gcc.devel newsgroup with my account.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |