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: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jan 2005 20:46:46 -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 bangerth at dealii dot org 2005-01-20 20:46 -------
To be completely clear, the compiler generated default constructor is
ptr() : a(0) {}
not
ptr() {}
Thus, it _does_ initialize 'a'.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19544