This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/9925] ostrstream (buf, size) << "..." does not work properly


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]