------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-12-21 19:43 ------- Richard, do you consider this a C++ front-end bug?
It does not seem to be a front-end bug to me; the "this" parameter is in fact compiler-generated. It's been marked DECL_ARTIFICIAL since time immemorila. Maybe the middle end should be performing this optimization at -O0 only if DECL_IGNORED_P is set. If you agree, we should recategorize this defect. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17799