This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/8977: g++ 3.2.2 unable to compile some code with template args
- From: reichelt at igpm dot rwth-aachen dot de
- To: djalil dot chafai at laposte dot net, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 18 Dec 2002 13:53:54 -0000
- Subject: Re: c++/8977: g++ 3.2.2 unable to compile some code with template args
- Reply-to: reichelt at igpm dot rwth-aachen dot de, djalil dot chafai at laposte dot net, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
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