c++/2802: internal compiler error with templates

guillaume.lemaitre@fr.thalesgroup.com guillaume.lemaitre@fr.thalesgroup.com
Fri May 11 04:36:00 GMT 2001


>Number:         2802
>Category:       c++
>Synopsis:       internal compiler error with templates
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Fri May 11 04:36:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     guillaume.lemaitre@fr.thalesgroup.com
>Release:        gcc-2.95.3
>Organization:
>Environment:
debian linux 
>Description:
problem with templates, subtypes and inheritance.

be a template parent class A,
a subclass B of A,
and a subclass C of A inheriting in public of B,

the definition of the interfaces cannot be split into three.
Definitions of B and C must be all integrated in the one of
A.

The problem comes from two parts : template and inheritance
inside of A

>How-To-Repeat:
g++ template.cc -c
>Fix:
don't know
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-c++src; name="template.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="template.cc"

LyogVmVyc2lvbiB0aGF0IGRvZXNuJ3Qgd29yayAqLwoKdGVtcGxhdGU8IHR5cGVuYW1lIFQgPiBj
bGFzcyBBIHsKCiAgY2xhc3MgQjsKICBjbGFzcyBDOwp9OwoKdGVtcGxhdGU8IHR5cGVuYW1lIFQg
PiBjbGFzcyBBPCBUID46OkIgewp9OwoKdGVtcGxhdGU8IHR5cGVuYW1lIFQgPiBjbGFzcyBBPCBU
ID46OkMgOiBwdWJsaWMgQTxUPjo6QiB7Cn07CgovKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi8KCi8qIFZlcnNpb24gdGhhdCB3b3Jr
cyBidXQgbGVzcyByZWFkYWJsZSAqLwoKLyoKdGVtcGxhdGU8IHR5cGVuYW1lIFQgPiBjbGFzcyBB
IHsKCiAgY2xhc3MgQiB7fTsKICBjbGFzcyBDIDogcHVibGljIEIge307Cn07CiovCg==



More information about the Gcc-prs mailing list