This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug optimization/10823] [3.3/3.4 regression] wrong code after first cse pass


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]