https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88646
gianni at mariani dot ws changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|INVALID |--- --- Comment #2 from gianni at mariani dot ws --- While it may be undefined, should the result at least be consistent? Either the result is zero and the bool cast works as the code expected or the result is non zero and the value printed is non zero. Note the printed l_v=0. Also note that casting the result to int doesn't work either.