public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* libstdc++/9562: ostream::sentry::operator bool () should be const
@ 2003-02-04 1:26 sebor
0 siblings, 0 replies; 3+ messages in thread
From: sebor @ 2003-02-04 1:26 UTC (permalink / raw)
To: gcc-gnats
>Number: 9562
>Category: libstdc++
>Synopsis: ostream::sentry::operator bool () should be const
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Feb 04 01:26:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: sebor@roguewave.com
>Release: 3.2.1
>Organization:
>Environment:
>Description:
27.6.1.1.2 p1 and p8 declare the function
std::ostream::sentry::operator bool () const;
libstdc++ declares it non-const, leading to compilation errors in programs such as the one below.
Regards
Martin
>How-To-Repeat:
$ cat t.cpp; g++ t.cpp -c
#include <ostream>
bool ok (std::ostream &strm)
{
const std::ostream::sentry sentry (strm);
return sentry;
}
t.cpp: In function `bool ok(std::ostream&)':
t.cpp:9: passing `const std::basic_ostream<char, std::char_traits<char>
>::sentry' as `this' argument of `std::basic_ostream<_CharT,
_Traits>::sentry::operator bool() [with _CharT = char, _Traits =
std::char_traits<char>]' discards qualifiers
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: libstdc++/9562: ostream::sentry::operator bool () should be const
@ 2003-02-07 15:51 paolo
0 siblings, 0 replies; 3+ messages in thread
From: paolo @ 2003-02-07 15:51 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, paolo, sebor
Synopsis: ostream::sentry::operator bool () should be const
State-Changed-From-To: analyzed->closed
State-Changed-By: paolo
State-Changed-When: Fri Feb 7 15:51:35 2003
State-Changed-Why:
Fixed for 3.4. Unfortunately, cannot be fixed for 3.3 without
breaking the ABI.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9562
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: libstdc++/9562: ostream::sentry::operator bool () should be const
@ 2003-02-06 21:30 paolo
0 siblings, 0 replies; 3+ messages in thread
From: paolo @ 2003-02-06 21:30 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, paolo, sebor
Synopsis: ostream::sentry::operator bool () should be const
Responsible-Changed-From-To: unassigned->paolo
Responsible-Changed-By: paolo
Responsible-Changed-When: Thu Feb 6 21:30:42 2003
Responsible-Changed-Why:
Fixing.
State-Changed-From-To: open->analyzed
State-Changed-By: paolo
State-Changed-When: Thu Feb 6 21:30:42 2003
State-Changed-Why:
Confirmed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9562
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-02-07 15:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-04 1:26 libstdc++/9562: ostream::sentry::operator bool () should be const sebor
2003-02-06 21:30 paolo
2003-02-07 15:51 paolo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).