public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: yiu04646@nifty.com To: gcc-gnats@gcc.gnu.org Subject: c++/8854: cannot use static template member as a callback Date: Fri, 06 Dec 2002 18:26:00 -0000 [thread overview] Message-ID: <20021207022135.28326.qmail@sources.redhat.com> (raw) >Number: 8854 >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 <URL:http://www.gnu.org/software/gcc/bugs.html> 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:
next reply other threads:[~2002-12-07 2:26 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-12-06 18:26 yiu04646 [this message] 2002-12-09 17:40 bangerth
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=20021207022135.28326.qmail@sources.redhat.com \ --to=yiu04646@nifty.com \ --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).