From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4828 invoked by alias); 7 Dec 2002 11:36:03 -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 4796 invoked by uid 71); 7 Dec 2002 11:36:02 -0000 Resent-Date: 7 Dec 2002 11:36:02 -0000 Resent-Message-ID: <20021207113602.4794.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, Martin von Loewis Received: (qmail 3382 invoked from network); 7 Dec 2002 11:29:43 -0000 Received: from unknown (HELO mail.informatik.hu-berlin.de) (141.20.20.50) by sources.redhat.com with SMTP; 7 Dec 2002 11:29:43 -0000 Received: from paros.informatik.hu-berlin.de (paros [141.20.23.39]) by mail.informatik.hu-berlin.de (8.11.3/8.11.3/INF-2.0-MA-SOLARIS-2.8) with ESMTP id gB7BTgJ03672 for ; Sat, 7 Dec 2002 12:29:42 +0100 (MET) Received: (from loewis@localhost) by paros.informatik.hu-berlin.de (8.12.2+Sun/8.12.2/Submit) id gB7BTghd008517; Sat, 7 Dec 2002 12:29:42 +0100 (CET) Message-Id: <200212071129.gB7BTghd008517@paros.informatik.hu-berlin.de> Date: Sat, 07 Dec 2002 03:36:00 -0000 From: Martin von Loewis To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: 3.113 Subject: c++/8857: template template arguments in conversion functions rejected X-SW-Source: 2002-12/txt/msg00435.txt.bz2 List-Id: >Number: 8857 >Category: c++ >Synopsis: template template arguments in conversion functions rejected >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: rejects-legal >Submitter-Id: net >Arrival-Date: Sat Dec 07 03:36:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Martin v. Löwis >Release: 3.1 >Organization: >Environment: System: SunOS paros 5.9 Generic_112233-02 sun4u sparc SUNW,Sun-Blade-1000 Architecture: sun4 host: sparc-sun-solaris2.8 build: sparc-sun-solaris2.8 target: sparc-sun-solaris2.8 configured with: ../configure --host=sparc-sun-solaris2.8 --enable-shared --enable-threads --with-cpu=v8 --with-gnu-ld --with-gnu-as --enable-version-specific-runtime-libs >Description: The following program is rejected: template struct A { template operator U() { return sizeof(U); } }; template struct B { template class X> operator X() { return X(); } }; int main() { A a; B b; a = b; } >How-To-Repeat: When compiling this program, the compiler reports b.cc:7: parse error before `<' token b.cc:7: syntax error before `<' token b.cc: In function `int main()': b.cc:13: no match for `A& = B&' operator b.cc:1: candidates are: A& A::operator=(const A&) >Fix: >Release-Note: >Audit-Trail: >Unformatted: