From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4432 invoked by alias); 25 Aug 2009 01:16:47 -0000 Received: (qmail 4392 invoked by uid 48); 25 Aug 2009 01:16:33 -0000 Date: Tue, 25 Aug 2009 01:16:00 -0000 Subject: [Bug c++/41161] New: Hello World in C++ ISO does NOT compile X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "juliorz at bellsouth dot net" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-08/txt/msg01927.txt.bz2 The following program which conforms to C++ ISO does NOT compile with G++ but compiles with no errors using Borland C++ 5.52 command line compiler. #include int main() { std::cout << "Hello World!" << std::endl; } The following errors are produced: julio@linux-wp1w:~> g++ hello_iso.cpp hello_iso.cpp:6:16: warning: missing terminating " character hello_iso.cpp:6: error: missing terminating " character hello_iso.cpp: In function ‘int main()’: hello_iso.cpp:8: error: expected primary-expression before ‘}’ token hello_iso.cpp:8: error: expected `;' before ‘}’ token julio@linux-wp1w:~> g++ hello_iso.cpp > error.log hello_iso.cpp:6:16: warning: missing terminating " character hello_iso.cpp:6: error: missing terminating " character hello_iso.cpp: In function ‘int main()’: hello_iso.cpp:8: error: expected primary-expression before ‘}’ token hello_iso.cpp:8: error: expected `;' before ‘}’ token -- Summary: Hello World in C++ ISO does NOT compile Product: gcc Version: 4.3.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: juliorz at bellsouth dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41161