http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47732
--- Comment #2 from Jan Koen Annot
2011-02-15 14:21:16 UTC ---
(In reply to comment #1)
> And overflow is undefined in C/C++ so you are invoking undefined behavior
> here.
Wow! This is an eye-opener for me! I am quite accustomed to assume two's
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47732
Summary: counter decremented to zero not detected when other
counter overflows
Product: gcc
Version: 4.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P3