This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/10823] [3.3/3.4 regression] wrong code after first cse pass
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jun 2003 15:26:17 -0000
- Subject: [Bug optimization/10823] [3.3/3.4 regression] wrong code after first cse pass
- References: <20030516165601.10823.gawrilow@math.tu-berlin.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10823
------- Additional Comments From bangerth at dealii dot org 2003-06-25 15:26 -------
By the way, since you are a frequent submitter: if you prepare reduced
testcases, it is helpful to make all classes structs, since then you can
drop public/private/protected. Next step is to get rid of accessor
functions, since now everything is public. At this point, your testcase had
already shrunk to about half its size!
After a few more steps, you'll want to get rid of const in as many
places as possible. This was when I realized that one of the arguments
didn't bind any more, which means that it must be a temporary -- because
temporaries _can_ bind to _const_ references, but not nonconst references.
>From there, it was an easy run through the defences for touchdown :-)
W.