c++/1848: g++ cannot compile std::ostream_iterator<std::pair<int, int> >

pme@gcc.gnu.org pme@gcc.gnu.org
Wed Oct 10 13:56:00 GMT 2001


Synopsis: g++ cannot compile std::ostream_iterator<std::pair<int, int> >

Responsible-Changed-From-To: unassigned->pme
Responsible-Changed-By: pme
Responsible-Changed-When: Wed Oct 10 13:56:00 2001
Responsible-Changed-Why:
    Because.
State-Changed-From-To: analyzed->closed
State-Changed-By: pme
State-Changed-When: Wed Oct 10 13:56:00 2001
State-Changed-Why:
    Duplicate of PR 4051.  The workaround/fix is to enclose
    the definition of your op<< in namespace std (as a
    specialization, doing so is allowed).  Making this change
    in your code works under 3.0.2 prerelease.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=1848&database=gcc



More information about the Gcc-bugs mailing list