[Bug c++/29913] argument width changes from inlined method definition with -O2

timj at gtk dot org gcc-bugzilla@gcc.gnu.org
Mon Nov 20 13:55:00 GMT 2006



------- Comment #3 from timj at gtk dot org  2006-11-20 13:55 -------
Richard, please take another look at the bug report.

note that the printed number change values depending on wether a class method
is inlined and compiled with -O2, or whether those 2 conditions are not met.
i think that, regardless of how g++ chooses to implement the C++ standard, the
calculated values shouldn't depend on -O1 vs. -O2 or on whether a class methopd
is inlined or not.

please also note that g++-3.4 and g++-3.3 both do not exhibit this behaviour,
so if you still want to close this bug report as invalid, please give a short
explanaition on why programs wich depend on the i++ result to increment, should
fail with gcc-4.2 when they worked perfectly fine with 3.3 and 3.4.


-- 

timj at gtk dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29913



More information about the Gcc-bugs mailing list