c++/3578: Unable to override template functions

peterho@ned.dem.csiro.au peterho@ned.dem.csiro.au
Thu Jul 5 15:16:00 GMT 2001


>Number:         3578
>Category:       c++
>Synopsis:       Unable to override template functions
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 05 15:16:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     peterho@ned.dem.csiro.au
>Release:        g++ 2.96-85
>Organization:
>Environment:
RedHat Linux 7.1
>Description:
Cannot override template functions at all.
>How-To-Repeat:
g++ WRONG2.cc
>Fix:
None.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="WRONG2.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="WRONG2.cc"

CmNsYXNzIEZvbwp7CnB1YmxpYzoKICAgRm9vKCkge307CgogICBGb28oaW50KSB7fTsKfTsKCmNs
YXNzIEJhcgp7CnB1YmxpYzoKICAgQmFyKCkge307CgogICB0ZW1wbGF0ZSA8Y2xhc3MgVD4KICAg
dmlydHVhbCBvcGVyYXRvciBUICgpCiAgIHsKICAgfTsKfTsKCgpjbGFzcyBCYXJCYXIgOiBwdWJs
aWMgQmFyCnsKcHVibGljOgogICBCYXJCYXIgKCkge307CgogICAvLyBpbnRlbmRlZCBvdmVycmlk
ZSBiYXNlIGNsYXNzIHRlbXBsYXRlIGNhc3QgZm9yIEZvbwogICAvLyBldmVuIHRoZSBvbGQgREVD
IGN4eCBnZXRzIHRoaXMgcmlnaHQuCiAgIHZpcnR1YWwgb3BlcmF0b3IgRm9vICgpIHt9Owp9OwoK
CmludCBtYWluKCkKewogICBCYXJCYXIgYmxhY2tfc2hlZXA7CgogICAvLyB0aGlzIGlzIHdoYXQg
dGhlIGZvbGxvd2luZyBjYXN0IHNob3VsZCBleHBhbmQgdG8KICAgRm9vIGZvb2JhciA9IGJsYWNr
X3NoZWVwLm9wZXJhdG9yIEZvbygpOwoKICAgLy8gTm90IEZvbyhCYXJCYXIgJikganVzdCBiZWNh
dXNlIGl0cyBhIHRlbXBsYXRlIQogICBGb28gYmFyID0gKEZvbykgYmxhY2tfc2hlZXA7CgogICAv
LyBZb3UgaGF2ZSBtYWRlIGl0IGltcG9zc2libGUgdG8gb3ZlcnJpZGUgdGVtcGxhdGUgZnVuY3Rp
b25zIQoKICAgcmV0dXJuIDA7Cn0K



More information about the Gcc-bugs mailing list