c++/1522: template inheritage

korimort@opt.math.tu-graz.ac.at korimort@opt.math.tu-graz.ac.at
Thu Dec 28 02:36:00 GMT 2000


>Number:         1522
>Category:       c++
>Synopsis:       template inheritage
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 28 02:36:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Thomas Korimort
>Release:        2.95.2
>Organization:
>Environment:
Debian 2.2 (Potato)
>Description:
One can construct template objects of kind
"template <class T> dummy:basedummy<T>", but if one tries to
cast a dummy<whatever> pointer to a basedummy<whatever>
pointer ("whatever" an instantiation of the template), the
compiler does not recognize basedummy<whatever> to be a base
class of dummy<whatever>.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the Gcc-prs mailing list