public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/3528: Including iostream.h doesn't bring all referenced symbols into global scope.
@ 2001-07-02  4:56 db
  0 siblings, 0 replies; 2+ messages in thread
From: db @ 2001-07-02  4:56 UTC (permalink / raw)
  To: gcc-gnats

>Number:         3528
>Category:       c++
>Synopsis:       Including iostream.h doesn't bring all referenced symbols into global scope.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 02 04:56:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Dirk Bonekamper
>Release:        3.0
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
After including iostream.h, not all symbols are brought into the global namespace. Example: hex manipulator.
> g++ -c testhex.cxx
testhex.cxx: In function `int main()':
testhex.cxx:4: `hex' undeclared (first use this function)
>How-To-Repeat:
#include <iostream.h>
int main()
{
    cout << hex << 256 << endl;
}
>Fix:
Use explicit namespace qualification.
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: c++/3528: Including iostream.h doesn't bring all referenced symbols into global scope.
@ 2001-07-02 12:57 pme
  0 siblings, 0 replies; 2+ messages in thread
From: pme @ 2001-07-02 12:57 UTC (permalink / raw)
  To: db, gcc-bugs, gcc-prs, nobody, pme

Synopsis: Including iostream.h doesn't bring all referenced symbols into global scope.

Responsible-Changed-From-To: unassigned->pme
Responsible-Changed-By: pme
Responsible-Changed-When: Mon Jul  2 12:57:28 2001
Responsible-Changed-Why:
    It's a library (libstdc++) issue.
State-Changed-From-To: open->analyzed
State-Changed-By: pme
State-Changed-When: Mon Jul  2 12:57:28 2001
State-Changed-Why:
    Thank you for your bug report.
    
    Please see libstdc++/2079 for discussion.
    
    I wrote at the time that the manipulators would be added
    for 3.0, but they were not.  I think we decided to not
    start dumping everything into the backwards-compat headers.
    Definitely read the audit trail thread for 2079.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3528&database=gcc


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-07-02 12:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-02  4:56 c++/3528: Including iostream.h doesn't bring all referenced symbols into global scope db
2001-07-02 12:57 pme

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).