public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: kloska@scienion.de To: gcc-gnats@gcc.gnu.org Subject: c++/5613: g++ is unable to find the proper output operator '<<' for tenplate class with two template arguments Date: Wed, 06 Feb 2002 08:26:00 -0000 [thread overview] Message-ID: <20020206161827.4443.qmail@sources.redhat.com> (raw) >Number: 5613 >Category: c++ >Synopsis: g++ is unable to find the proper output operator '<<' for tenplate class with two template arguments >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Feb 06 08:26:05 PST 2002 >Closed-Date: >Last-Modified: >Originator: kloska@scienion.de >Release: 2.95.3 >Organization: >Environment: linux kernel 2.4 >Description: g++ 2.95.3 is aunable to find the proper output operator '<<' for a template class with two arguments in the form template<class CODE,CODE DEFAULT> class Container { } The logic behind this is that I wanted to create a generic container of type CODE with the default value DEFAULT. It works fine with egcs-1.1.2 and the intel c++ >How-To-Repeat: compile the attached file >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/octet-stream; name="test.cc" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="test.cc" I2luY2x1ZGUgPGlvc3RyZWFtPgoKdGVtcGxhdGU8Y2xhc3MgVFlQRSxUWVBFIERFRkFVTFQ+IApj bGFzcyBHYUdhIHsKcHVibGljOgogIC8vIHN0YW5kYXJkIGNvbnN0cnVjdG9yLiBJbml0aWFsaXpl CiAgLy8gd2l0aCB0aGUgZGVmYXVsdCB2YWx1ZQogIEdhR2EoKSB7CiAgICBhPTExMTsKICB9OwoK ICAvLyByZXRyaWV2ZSB0aGUgY3VycmVudCBjb250ZW50cwogIFRZUEUgZ2V0KCkgewogICAgcmV0 dXJuIGE7CiAgfQoKcHJpdmF0ZToKICBUWVBFIGE7Cn07Cgp0ZW1wbGF0ZTxjbGFzcyBUWVBFLFRZ UEUgREVGQVVMVD4Kb3N0cmVhbSAmIG9wZXJhdG9yPDwob3N0cmVhbSAmIG9zLEdhR2E8VFlQRSxE RUZBVUxUPiAmIGcpIHsKICBvcyA8PCAiIDw8ICIgPDwgZy5nZXQoKSA8PCAiID4+ICIgPDwgZW5k bDsKICByZXR1cm4gb3M7Cn07CgppbnQgbWFpbigpCgp7CQogIEdhR2E8aW50LDExMT4gZzsKICBj ZXJyIDw8IGcgPDwgZW5kbDsKICByZXR1cm4gMDsKfQoK
next reply other threads:[~2002-02-06 16:26 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-02-06 8:26 kloska [this message] 2002-05-28 7:11 lerdsuwa
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20020206161827.4443.qmail@sources.redhat.com \ --to=kloska@scienion.de \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).