This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: PR 7875
On Tue, Apr 15, 2003 at 09:11:02PM +0200, Gabriel Dos Reis wrote:
> Mark Mitchell <mark at codesourcery dot com> writes:
>
> | This is a high-priorty PR that was marked as a compiler bug, but is
> | really a library bug -- or perhaps not a bug at all.
> |
> | Would one of you library gurus please take a look at it, and decide
> | whether it really is a bug?
>
> This is not a bug. Nathan's analysis is correct. And I'll emphasize
> it saying that the insertiong operator that takes a "const char*" is
> not a member-function and expects a plain reference to std::ostream.
To be more precise: this is not a bug in libstdc++ or in the compiler.
It might reasonably be considered a bug in the standard, which we would
call a defect, but it's very unlikely to be fixed at this late date.
(A workaround would be to declare one's own set of operators <<.)
That the code compiled OK in gcc-2.x was a bug, of sorts.
Nathan Myers
ncm-nospam at cantrip dot org