[Bug libstdc++/9925] ostrstream (buf, size) << "..." does not work properly
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Aug 18 02:54:00 GMT 2003
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.
More information about the Gcc-bugs
mailing list