This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/9925] ostrstream (buf, size) << "..." does not work properly
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Aug 2003 02:54:23 -0000
- Subject: [Bug libstdc++/9925] ostrstream (buf, size) << "..." does not work properly
- References: <20030303192600.9925.pawel.pilarczyk@math.gatech.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9925
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-08-18 02:54 -------
Note ICC 6.0 in strict mode warns about this:
pr9925.cc(11): warning #504: initial value of reference to non-const must be an lvalue
ostrstream (buf, 100) << "This is OK." << ends;
^
I think gcc should warn or error out here also.