This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/16251] bogus default constructor for std::basic_iostream
- From: "ralfixx at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jul 2004 12:49:37 -0000
- Subject: [Bug libstdc++/16251] bogus default constructor for std::basic_iostream
- References: <20040628194641.16251.ralfixx@gmx.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From ralfixx at gmx dot de 2004-07-05 12:49 -------
(In reply to comment #0)
> Analysis: in 3.4.0 a default constructor for basic_istream() was added
> (include/.../istream, #562ff)
> protected:
> explicit
> basic_istream(): _M_gcount(streamsize(0)) { }
>
> which leaves the iostream in an ill state.
The exact file name in the 3.4.1 distribution is
gcc-3.4.1/libstdc++-v3/include/std/std_istream.h, line 562 ff.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16251