------- Comment #7 from pinskia at gcc dot gnu dot org 2010-08-10 23:08 ------- >correct results.
There is no correct results since you are depending on undefined behavior. It is not a short coming of GCC but rather the source you are trying to port. The code is not portable at all. It will not work on other compilers besides GCC. It will not work on other targets where MS had a compiler (like their PowerPC Windows machines [xbox and WinNT 3.5 and such]). -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45249