From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12903 invoked by alias); 6 Feb 2002 16:26:07 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 12860 invoked by uid 71); 6 Feb 2002 16:26:05 -0000 Resent-Date: 6 Feb 2002 16:26:05 -0000 Resent-Message-ID: <20020206162605.12859.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, kloska@scienion.de Received:(qmail 4445 invoked by uid 61); 6 Feb 2002 16:18:27 -0000 Message-Id:<20020206161827.4443.qmail@sources.redhat.com> Date: Wed, 06 Feb 2002 08:26:00 -0000 From: kloska@scienion.de Reply-To: kloska@scienion.de To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/5613: g++ is unable to find the proper output operator '<<' for tenplate class with two template arguments X-SW-Source: 2002-02/txt/msg00145.txt.bz2 List-Id: >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 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