|
Boost Users : |
Subject: Re: [Boost-users] Valgrind false positive in make_shared
From: Dave Steffen (dave.steffen_at_[hidden])
Date: 2010-11-30 15:46:39
On Tuesday, November 30, 2010 03:40:14 am Peter Dimov wrote:
> Dave Steffen wrote:
> > Hi
> >
> > Coming back to this issue after a week or two... trying the above
>
> [changing to std::forward]
>
> > made no difference: no compiler warnings, and no change in
> > Valgrind's error messages.
>
> Looks like a g++ bug then. You should try reproducing it in a
> self-contained example and report it to the GCC Bugzilla. I'm not sure
> what we can do on our end to avoid it. (I'll switch to std::forward in any
> case, since this seems a good idea in general, but it won't help in this
> specific case.)
I reported this as GCC bug 46732. You can see the whole discussion
at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46732
but the short version is:
There was a defect in the language, core issue 664
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#664
GCC 4.4 predates that issue being resolved, so the only real workaround is
to
avoid using -std=c++0x with GCC 4.4
(thanks to Jonathan Wakely for getting to this so quickly)
-- Dave Steffen, Ph.D. - Software Engineer Numerica Corporation <http://www.numerica.us> 4850 Hahns Peak Drive, Suite 200 Loveland, Colorado 80538 main (970) 461-2000 x 227 direct (970) 612-2327 Email: dave.steffen_at_[hidden] fax (970) 461-2004 This message and any attachments are intended only for the individual or entity to which the message is addressed. This is a private message and may contain privileged information. If you are neither the intended recipient nor the agent responsible for delivering the message to the intended recipient, you are hereby notified that any review, retransmission, dissemination, or taking of any action in reliance upon, the information in this communication is strictly prohibited, and may be unlawful. If you feel you have received this communication in error, please notify me immediately by returning this email to me and deleting it from your computer.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net