From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2703 invoked by alias); 22 Aug 2002 23:06:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 2684 invoked by uid 71); 22 Aug 2002 23:06:01 -0000 Date: Thu, 22 Aug 2002 16:16:00 -0000 Message-ID: <20020822230601.2682.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Gabriel Dos Reis Subject: Re: c++/7672: can't compile c++ files Reply-To: Gabriel Dos Reis X-SW-Source: 2002-08/txt/msg00477.txt.bz2 List-Id: The following reply was made to PR c++/7672; it has been noted by GNATS. From: Gabriel Dos Reis 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 | | 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