This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17799] [4.0 Regression] Non-optimizing compile loses 'this'
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Dec 2004 19:43:47 -0000
- Subject: [Bug c++/17799] [4.0 Regression] Non-optimizing compile loses 'this'
- References: <20041003022456.17799.rth@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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