public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/52938] std::string::reserve request is not maintained if object is used in other object copy ctore Date: Wed, 11 Apr 2012 20:26:00 -0000 [thread overview] Message-ID: <bug-52938-4-I0JZg2wwDE@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-52938-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52938 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c++ |libstdc++ --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-04-11 20:26:04 UTC --- Why do you think this is a bug? I don't see why x="aaa"; would not change the reserve. The main reason why it changes the reserve is that the backing part is shared between x and y.
next prev parent reply other threads:[~2012-04-11 20:26 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-04-11 20:23 [Bug c++/52938] New: " abdul.tohmaz at emc dot com 2012-04-11 20:26 ` pinskia at gcc dot gnu.org [this message] 2012-04-11 20:32 ` [Bug libstdc++/52938] " abdul.tohmaz at emc dot com 2012-04-11 20:57 ` redi at gcc dot gnu.org 2012-04-11 21:08 ` redi at gcc dot gnu.org 2012-04-11 22:34 ` [Bug libstdc++/52938] std::string::reserve request is not maintained if object is used in other object copy ctor paolo.carlini at oracle dot com 2012-04-11 23:50 ` abdul.tohmaz at emc dot com 2012-04-11 23:53 ` abdul.tohmaz at emc dot com 2012-04-11 23:57 ` paolo.carlini at oracle dot com 2012-04-11 23:58 ` paolo.carlini at oracle dot com 2012-04-12 0:12 ` abdul.tohmaz at emc dot com 2012-04-12 0:22 ` redi at gcc dot gnu.org 2012-04-12 23:07 ` abdul.tohmaz at emc dot com 2012-04-13 8:31 ` redi at gcc dot gnu.org 2012-04-13 13:38 ` abdul.tohmaz at emc dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-52938-4-I0JZg2wwDE@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).