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++/19544] Difference in behaviour if default constructor added


------- Additional Comments From chris at bubblescope dot net  2005-01-20 15:14 -------
Heres another test-case...

#include<algorithm>

struct ptr
{
int* a;
ptr() {}
};

struct foo
{
ptr array[1];
foo() { std::uninitalized_fill_n(array,1,ptr()); }
};

foo f;

Which shows it isn't limited to libstdc++ (assuming uninitalized_fill_n is
correct, which I'm fairly sure it is).

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19544


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