This is the mail archive of the gcc@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] | |
Hello Jan, thank you for your answer. The attached file uses (depends on define) dynamic allocated memory or static arrays as before. valgrind shows some "Invalid read of size 8" (see comments on the lines). The interesting behavior is by defined TVMET_RVO_BUG_WO_STATIC_TEMP, where static temps are used for evaluating inside the prod() function - there are no errors found by valgrind! These looks for me as wrong code produced by gcc. Unfortunally I'm not able to understand the asm code produced. It doesn't seems to be a problem with the FPU - the same with long too. Regards Olaf ----- Original Message ----- From: "Jan Reimers" <janr@molienergy.com> To: "'Olaf Petzold'" <opetzold@wit.regiocom.net> Sent: Tuesday, September 16, 2003 4:58 PM Subject: RE: Expression and Meta Templates Problem using C++ (Wrong results) : Olaf, : You may be right, but put try it as is first in case it does pick up reads : on un-initialialized static memory.
Attachment:
rvo_bug.cc
Description: Binary data
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |