This is the mail archive of the gcc-prs@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]
Other format: [Raw text]

Re: c++/7672: can't compile c++ files


The following reply was made to PR c++/7672; it has been noted by GNATS.

From: Gabriel Dos Reis <gdr@integrable-solutions.net>
To: bradshaw@mcs.anl.gov
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c++/7672: can't compile c++ files
Date: 23 Aug 2002 00:57:32 +0200

 bradshaw@mcs.anl.gov writes:
 
 | >Class:          rejects-legal
 
 The testcase you submitted is invalid since the standard library is
 now in namespace std as required.
 
 | >Description:
 | I write a simple hello world program with cout and include iostream and it doesn't compile and claims unknown identifier cout.
 | #include <iostream>
 | 
 | int main() {
 |         cout << "hello WOrld" << endl;
 
 This is invalid: entities from the Standard library are placed in the
 standard namespace; and the above should read:
 
     std::cout << "hello WOrld" << std::endl;
 
 -- Gaby


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