This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/19544] Difference in behaviour if default constructor added
- From: "chris at bubblescope dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jan 2005 15:14:34 -0000
- Subject: [Bug libstdc++/19544] Difference in behaviour if default constructor added
- References: <20050120125055.19544.chris@bubblescope.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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