This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/7672: can't compile c++ files
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 22 Aug 2002 23:06:01 -0000
- Subject: Re: c++/7672: can't compile c++ files
- Reply-to: Gabriel Dos Reis <gdr at integrable-solutions dot net>
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