public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/8855: cannot use static template member as a callback
@ 2002-12-06 18:26 yiu04646
0 siblings, 0 replies; 2+ messages in thread
From: yiu04646 @ 2002-12-06 18:26 UTC (permalink / raw)
To: gcc-gnats
>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 <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:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/8855: cannot use static template member as a callback
@ 2002-12-07 0:04 paolo
0 siblings, 0 replies; 2+ messages in thread
From: paolo @ 2002-12-07 0:04 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, yiu04646
Synopsis: cannot use static template member as a callback
State-Changed-From-To: open->closed
State-Changed-By: paolo
State-Changed-When: Sat Dec 7 00:04:17 2002
State-Changed-Why:
Exact duplicate of c++/8854.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8855
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-12-07 8:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-06 18:26 c++/8855: cannot use static template member as a callback yiu04646
2002-12-07 0:04 paolo
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).