c++/2464: Template pointer parameter specialization of member functions

philippeb@corel.com philippeb@corel.com
Mon Apr 2 17:26:00 GMT 2001


>Number:         2464
>Category:       c++
>Synopsis:       Template pointer parameter specialization of member functions
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 02 17:26:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     gcc
>Release:        gcc version 2.95.3 20010101 (prerelease)
>Organization:
>Environment:
Debian Woody on i386
>Description:
If a specialize a template class to accept pointers, 
and eventually instanciate that class with pointers to members, 
I will run into problems:

testpartialtemplate.cpp: In function `int main()':
testpartialtemplate.cpp:24: no matching function for call to `C<void (Type::*)()>::foo ()'
testpartialtemplate.cpp:10: candidates are: void C<void (Type::*)()>::foo()
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-c++src; name="testpartialtemplate.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="testpartialtemplate.cpp"

I2luY2x1ZGUgPGlvc3RyZWFtPgoKdGVtcGxhdGUgPHR5cGVuYW1lIFQ+IHN0cnVjdCBDCnsKCXZv
aWQgZm9vKCkgeyBjb3V0IDw8IF9fUFJFVFRZX0ZVTkNUSU9OX18gPDwgIjogMSIgPDwgZW5kbDsg
fQp9OwoKdGVtcGxhdGUgPHR5cGVuYW1lIFQ+IHN0cnVjdCBDPFQgKj4KewoJdm9pZCBmb28oKSB7
IGNvdXQgPDwgX19QUkVUVFlfRlVOQ1RJT05fXyA8PCAiOiAyIiA8PCBlbmRsOyB9Cn07CgpzdHJ1
Y3QgVHlwZQp7Cgl2b2lkIGZvbygpIHsgfQp9OwoKaW50IG1haW4oKQp7CglDPFR5cGU+IGYxOwoJ
Qzx2b2lkIChUeXBlOjoqKSgpPiBmMjsKCglmMS5mb28oKTsKCWYyLmZvbygpOwp9Cg==



More information about the Gcc-bugs mailing list