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]

c++/3528: Including iostream.h doesn't bring all referenced symbols into global scope.



>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:


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