This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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] | |
I would suggest trying to figure which is the current situation in Bugzilla, 4.0.1 pre, and mainline (I can also do that, of course, but would appreciate a stand-alone snippet
from your work) and then take the appropriate action.
The issue seems fixed in mainline (I'm using simple testcases like a single uninitialized_copy on a vector of non-PODs, -fno-exceptions -O -Wreturn-type). However, seems still present in 4_0-branch, unfortunately. I would suggest making sure that there are no duplicate PRs and, in case, file one, the safe way: it can even be that in mainline it's fixed by chance ;)
#include <vector>
std::vector<int> *factory()
{
std::vector<int> *p = new std::vector<int>;
p->reserve(10);
return p;
}And as you said, the same error does not occur with a recent snapshot of gcc-4.1.
I'll file the bug against gcc-4.0 as you suggested after a bugzilla search.
Thanks! - Dan
-- Trying to get a job as a c++ developer? See http://kegel.com/academy/getting-hired.html
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |