public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/41161]  New: Hello World in C++ ISO  does NOT compile
@ 2009-08-25  1:16 juliorz at bellsouth dot net
  2009-08-25  4:13 ` [Bug c++/41161] " bangerth at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: juliorz at bellsouth dot net @ 2009-08-25  1:16 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1311 bytes --]

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

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/41161] Hello World in C++ ISO  does NOT compile
  2009-08-25  1:16 [Bug c++/41161] New: Hello World in C++ ISO does NOT compile juliorz at bellsouth dot net
@ 2009-08-25  4:13 ` bangerth at gmail dot com
  2009-08-25 14:00 ` bangerth at gmail dot com
  2009-09-26 19:45 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: bangerth at gmail dot com @ 2009-08-25  4:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from bangerth at gmail dot com  2009-08-25 04:12 -------
It looks like your terminating double quote is not the same as the
opening one. How are they encoded on your system?


-- 

bangerth at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bangerth at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41161


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/41161] Hello World in C++ ISO  does NOT compile
  2009-08-25  1:16 [Bug c++/41161] New: Hello World in C++ ISO does NOT compile juliorz at bellsouth dot net
  2009-08-25  4:13 ` [Bug c++/41161] " bangerth at gmail dot com
@ 2009-08-25 14:00 ` bangerth at gmail dot com
  2009-09-26 19:45 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: bangerth at gmail dot com @ 2009-08-25 14:00 UTC (permalink / raw)
  To: gcc-bugs



-- 

bangerth at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41161


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/41161] Hello World in C++ ISO  does NOT compile
  2009-08-25  1:16 [Bug c++/41161] New: Hello World in C++ ISO does NOT compile juliorz at bellsouth dot net
  2009-08-25  4:13 ` [Bug c++/41161] " bangerth at gmail dot com
  2009-08-25 14:00 ` bangerth at gmail dot com
@ 2009-09-26 19:45 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-09-26 19:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2009-09-26 19:45 -------
This program works for me, I copied and pasted your sample and it worked.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |WORKSFORME


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41161


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-09-26 19:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-25  1:16 [Bug c++/41161] New: Hello World in C++ ISO does NOT compile juliorz at bellsouth dot net
2009-08-25  4:13 ` [Bug c++/41161] " bangerth at gmail dot com
2009-08-25 14:00 ` bangerth at gmail dot com
2009-09-26 19:45 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).