public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/8977: g++ 3.2.2 unable to compile some code with template args
@ 2002-12-18 5:53 reichelt
0 siblings, 0 replies; 2+ messages in thread
From: reichelt @ 2002-12-18 5:53 UTC (permalink / raw)
To: djalil.chafai, gcc-bugs, gcc-prs, nobody
Synopsis: g++ 3.2.2 unable to compile some code with template args
State-Changed-From-To: open->closed
State-Changed-By: reichelt
State-Changed-When: Wed Dec 18 05:53:52 2002
State-Changed-Why:
Not a bug.
gcc does not know the identifier ostream_iterator and fails
with a parse error. If you add
#include <iterator>
to your program (as required by the ISO standard), everything works fine.
BTW, Intels compiler seems to import ostream_iterator also with
#include <vector>
which is wrong.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8977
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/8977: g++ 3.2.2 unable to compile some code with template args
@ 2002-12-18 7:16 Djalil CHAFAI
0 siblings, 0 replies; 2+ messages in thread
From: Djalil CHAFAI @ 2002-12-18 7:16 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1355 bytes --]
The following reply was made to PR c++/8977; it has been noted by GNATS.
From: Djalil CHAFAI <chafai@math.ups-tlse.fr>
To: reichelt@igpm.rwth-aachen.de, djalil.chafai@laposte.net,
gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org,
gcc-gnats@gcc.gnu.org
Cc:
Subject: Re: c++/8977: g++ 3.2.2 unable to compile some code with template args
Date: Wed, 18 Dec 2002 16:10:51 +0100 (MET)
On 18 Dec 2002 reichelt@igpm.rwth-aachen.de wrote:
> Synopsis: g++ 3.2.2 unable to compile some code with template args
> State-Changed-From-To: open->closed
> State-Changed-By: reichelt
> State-Changed-When: Wed Dec 18 05:53:52 2002
> State-Changed-Why:
> Not a bug.
> gcc does not know the identifier ostream_iterator and fails
> with a parse error. If you add
> #include <iterator>
> to your program (as required by the ISO standard), everything works fine.
> BTW, Intels compiler seems to import ostream_iterator also with
> #include <vector>
> which is wrong.
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8977
Thanks for your explanation. If I understand, g++-3.0 and Intel icc
7.0 are both wrong and g++-3.2 is the closer to the standard.
Best,
PS: is there a need to delete my bug report?
--
Djèlil Chafaï - http://www.lsp.ups-tlse.fr/Chafai/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-12-18 15:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-18 5:53 c++/8977: g++ 3.2.2 unable to compile some code with template args reichelt
2002-12-18 7:16 Djalil CHAFAI
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).