This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/11638] [3.3.1 prerelease] std::vector assign problem with null pointer constant


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]