This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/42242] vector::resize could be split up into two different functions
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Dec 2009 18:40:58 -0000
- Subject: [Bug libstdc++/42242] vector::resize could be split up into two different functions
- References: <bug-42242-6594@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from pinskia at gcc dot gnu dot org 2009-12-01 18:40 -------
(In reply to comment #5)
> (In reply to comment #2)
> > On second thoughts, it might be necessary to split it into two overloads for
> > C++1x, because this should work:
>
> Gah, ignore that, I'm talking rubbish and that shouldn't work
>
> Andrew, the standard would allow two overloads instead of one, see
> [member.functions]/2
hmm, I missed that :).
Note doesn't a change like this change the ABI? Which means it has to wait
until v7?
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Status|RESOLVED |UNCONFIRMED
Keywords| |missed-optimization
Resolution|INVALID |
Summary|vector::resize unnecessarily|vector::resize could be
|calls null constructor |split up into two different
| |functions
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42242