Still broken in the g++-4.4 in Quantal:
dg@major:~$ g++-4.4 x.cpp -g -O2
dg@major:~$ ./a.out a.out: x.cpp:11: int main(): Assertion `v.size() <= v.capacity()' failed. Aborted (core dumped)
4.5,4.6,4.7 all seem good.
Still broken in the g++-4.4 in Quantal:
dg@major:~$ g++-4.4 x.cpp -g -O2
dg@major:~$ ./a.out
a.out: x.cpp:11: int main(): Assertion `v.size() <= v.capacity()' failed.
Aborted (core dumped)
4.5,4.6,4.7 all seem good.