This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/11638] [3.3.1 prerelease] std::vector assign problem with null pointer constant
- From: "nick at ilm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jul 2003 23:23:35 -0000
- Subject: [Bug libstdc++/11638] [3.3.1 prerelease] std::vector assign problem with null pointer constant
- References: <20030722231912.11638.nick@ilm.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11638
------- Additional Comments From nick at ilm dot com 2003-07-22 23:23 -------
Created an attachment (id=4460)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4460&action=view)
3.3.1 preprocessed code triggering the bug
In the original mail I stated that the code complied under 3.2.3,
the code I was referring to is:
---
#include <vector>
class A;
void
f()
{
std::vector<A *> v;
v.assign(5,0);
}
-----
feeding the 3.3.1 preprocessed code into 3.2.3 does not compile.
-nick