From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9105 invoked by alias); 7 Dec 2002 02:26:02 -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 8784 invoked by uid 71); 7 Dec 2002 02:26:01 -0000 Resent-Date: 7 Dec 2002 02:26:01 -0000 Resent-Message-ID: <20021207022601.8778.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, yiu04646@nifty.com Received: (qmail 28405 invoked by uid 61); 7 Dec 2002 02:22:26 -0000 Message-Id: <20021207022226.28403.qmail@sources.redhat.com> Date: Fri, 06 Dec 2002 18:26:00 -0000 From: yiu04646@nifty.com Reply-To: yiu04646@nifty.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/8855: cannot use static template member as a callback X-SW-Source: 2002-12/txt/msg00431.txt.bz2 List-Id: >Number: 8855 >Category: c++ >Synopsis: cannot use static template member as a callback >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: rejects-legal >Submitter-Id: net >Arrival-Date: Fri Dec 06 18:26:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Norihiro Kakihara >Release: gcc version 2.95.3-5 (cygwin special) >Organization: >Environment: cygwin 1.3.12-4 (on Microsoft Windows Me) >Description: x.cpp: In method `int (* X::bar())()': x.cpp:7: Internal compiler error. x.cpp:7: Please submit a full bug report. x.cpp:7: See for instructions. Both static non-templated member, templated function can be a callback, but their combination cannot. >How-To-Repeat: class X { template< int N > static int foo( ) { return N; } public: typedef int (*Function)( ); Function bar( ) { return foo< 5 >; } }; int main( ) { X x; x.bar( )( ); return 0; } >Fix: >Release-Note: >Audit-Trail: >Unformatted: