public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/32618] std::vector calls uneccessary constructors instead of inplace construction of first object
Date: Wed, 04 Jul 2007 00:52:00 -0000 [thread overview]
Message-ID: <20070704005240.24357.qmail@sourceware.org> (raw)
In-Reply-To: <bug-32618-11420@http.gcc.gnu.org/bugzilla/>
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-07-04 00:52 -------
> The optimization I am suggesting would produce the following [approximate]
is wrong. You have to bind a constant reference to a temp variable and then
doing a copy as you do a[0] = b;
So the optimization for resize is wrong and incorrect.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32618
next prev parent reply other threads:[~2007-07-04 0:52 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-04 0:46 [Bug libstdc++/32618] New: " oliver at kfs dot org
2007-07-04 0:52 ` pinskia at gcc dot gnu dot org [this message]
2007-07-04 1:03 ` [Bug libstdc++/32618] " pcarlini at suse dot de
2007-07-04 4:27 ` oliver at kfs dot org
2007-07-04 4:34 ` pinskia at gcc dot gnu dot org
2007-07-04 5:45 ` oliver at kfs dot org
2007-11-28 0:57 ` pcarlini at suse dot de
2008-01-02 20:37 ` pcarlini at suse dot de
2009-12-02 0:01 ` paolo dot carlini at oracle dot com
2010-01-08 15:42 ` paolo dot carlini at oracle dot com
2010-06-16 11:04 ` paolo dot carlini at oracle dot com
2010-06-18 18:08 ` paolo at gcc dot gnu dot org
2010-06-18 18:22 ` paolo dot carlini at oracle 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=20070704005240.24357.qmail@sourceware.org \
--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: link
Be 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).