This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/3528: Including iostream.h doesn't bring all referenced symbols into global scope.
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/3528: Including iostream.h doesn't bring all referenced symbols into global scope.
- From: db at rtsffm dot com
- Date: 2 Jul 2001 11:46:44 -0000
- Reply-To: db at rtsffm dot com
>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: