libstdc++/7244: Internal compiler error

r.canellas@terra.com.br r.canellas@terra.com.br
Tue Jul 9 07:43:00 GMT 2002


>Number:         7244
>Category:       libstdc++
>Synopsis:       Internal compiler error
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 09 07:36:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     r.canellas@terra.com.br
>Release:        2.95.3
>Organization:
>Environment:
Conectiva Linux version 8, kernel 2.4.18
>Description:
Using something like this:

template <class T>
class XPTO {


public:
    class XPTOEx;
.
.
};

template <class T>
class XPTO<T>::XPTOEx {
.
.
}
>How-To-Repeat:
Just instatiate a CadastroImagens<T>
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="cad_imgs.h"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="cad_imgs.h"

Ci8vLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tCiNpZm5kZWYgQ0FEX0lNR1NfSAojZGVmaW5lIENBRF9JTUdT
X0gKLy8tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0KCi8vIEFURU7Hw08gOiB1c2UgJ3RhYicgPSAyIHBhcmEg
dmlzdWFsaXphciBlc3RlIGFycXVpdm8KCi8vICAgICAgICAgICAgICAgICAgICAgICAgICAgIEMr
KyBpbmNsdWRlcwojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8bWFwPgojaW5jbHVkZSA8ZXhj
ZXB0aW9uPgojaW5jbHVkZSA8cHRyLmg+Ci8vICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlu
Y2x1ZGVzIGRhIGluc3RhbGFjYW8KCi8vICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5hbWVz
cGFjZXMgdXNhZG9zCgovLyAgICAgICAgICAgICAgICAgICAgICAgICAgICBwcmUtZGVjbGFyYef1
ZXMKCgovLy8gIENsYXNzZSBxdWUgZm9ybmVjZSBpbWFnZW5zIGFzc29jaWFkYXMgYSBub21lcyAK
Ci8qKiAKICogIEF0cmF26XMgZG8gbel0b2RvICdQdHI8Y29uc3QgSU1HPiBnZXRJbWcoc3RkOjpz
dHJpbmcpJywgcmVjdXBlcmEtc2UgYSBpbWFnZW0gYXNzb2NpYWRhIGEgdW0gbm9tZS4KICoKICog
SGlzdPNyaWNvOgogKiAgIDA4LzA3LzIwMDIgOiBjcmlh5+NvCiAqLwp0ZW1wbGF0ZSA8Y2xhc3Mg
SU1HPgpjbGFzcyBDYWRhc3Ryb0ltYWdlbnMgewogIC8vICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgRlJJRU5EUwoKCS8vICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgIGNsYXNzZXMKCgkvLy8gIGV4Y2Xn428gZGEgY2xhc3NlCgljbGFzcyBDYWRh
c3Ryb0ltYWdlbnNFeCA7CgoKCS8vICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgIG3pdG9kb3MKCgkvLyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICBvcGVyYWRvcmVzCgoKICAvLyAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgIENMQVNTRVMgSU5URVJOQVMKCiBwcm90ZWN0ZWQ6Cgl0eXBlZGVmIG1hcDxzdGQ6OnN0
cmluZywgUHRyPElNRz4gPiBJbWFnZW5zOwoKIHB1YmxpYzoKCS8vICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgQ2FkYXN0cm9JbWFnZW5zIFBVQkxJQyAgIGNvbnN0cnV0b3JlcwoK
CUNhZGFzdHJvSW1hZ2VucygpIHt9Cgl2aXJ0dWFsIH5DYWRhc3Ryb0ltYWdlbnMoKSB7fQoKCgkv
LyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIENhZGFzdHJvSW1hZ2VucyBQVUJM
SUMgICBnZXRzCgoKCS8vICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQ2FkYXN0
cm9JbWFnZW5zIFBVQkxJQyAgIHNldHMKCgkvLyAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgIENhZGFzdHJvSW1hZ2VucyBQVUJMSUMgICBwcm9jZXNzYWRvcmVzCgoJLy8gICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICBDYWRhc3Ryb0ltYWdlbnMgUFVCTElDICAgb3Bl
cmF0b3JzCgkKCgkvLyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIENhZGFzdHJv
SW1hZ2VucyBQVUJMSUMgICBhdHJpYnV0b3MgZGUgY2xhc3NlCgoJLy8gICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICBDYWRhc3Ryb0ltYWdlbnMgUFVCTElDICAgICAgICAgICAgIGNv
bnN0YW50ZXMKCgkvLyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIENhZGFzdHJv
SW1hZ2VucyBQVUJMSUMgICAgICAgICAgICAgdmFyaeF2ZWlzCgoJLy8gICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICBDYWRhc3Ryb0ltYWdlbnMgUFVCTElDICAgYXRyaWJ1dG9zIGRl
IGluc3TibmNpYQoKCS8vICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQ2FkYXN0
cm9JbWFnZW5zIFBVQkxJQyAgICAgICAgICAgICBjb25zdGFudGVzCgoJLy8gICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICBDYWRhc3Ryb0ltYWdlbnMgUFVCTElDICAgICAgICAgICAg
IHZhcmnhdmVpcwoKCgogcHJvdGVjdGVkOgoJLy8gICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICBDYWRhc3Ryb0ltYWdlbnMgUFJPVEVDVEVEICAgY29uc3RydXRvcmVzCgoJLy8gICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBDYWRhc3Ryb0ltYWdlbnMgUFJPVEVDVEVE
ICAgZ2V0cwoKCS8vLyByZWN1cGVyYSB1bWEgaW1hZ2VtIGFzc29jaWFkYSBhICdub21lSW1nJwoJ
UHRyPGNvbnN0IElNRz4gX2dldEltZyhjb25zdCBzdGQ6OnN0cmluZyAmbm9tZUltZyk7CgoKCS8v
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQ2FkYXN0cm9JbWFnZW5zIFBST1RF
Q1RFRCAgIHNldHMKCgkvLyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIENhZGFz
dHJvSW1hZ2VucyBQUk9URUNURUQgICBwcm9jZXNzYWRvcmVzCgoJLy8vIGNhZGFzdHJhIHVtYSBp
bWFnZW0gCgl2b2lkIF9hZGRJbWcoY29uc3Qgc3RkOjpzdHJpbmcgJm5vbWVJbWcsIFB0cjxJTUc+
IGltZyk7CgoJLy8gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBDYWRhc3Ryb0lt
YWdlbnMgUFJPVEVDVEVEICAgb3BlcmF0b3JzCgoJLy8gICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICBDYWRhc3Ryb0ltYWdlbnMgUFJPVEVDVEVEICAgYXRyaWJ1dG9zIGRlIGNsYXNz
ZQoKCS8vICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQ2FkYXN0cm9JbWFnZW5z
IFBST1RFQ1RFRCAgICAgICAgICAgICBjb25zdGFudGVzCgoJLy8gICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICBDYWRhc3Ryb0ltYWdlbnMgUFJPVEVDVEVEICAgICAgICAgICAgIHZh
cmnhdmVpcwoKCS8vICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQ2FkYXN0cm9J
bWFnZW5zIFBST1RFQ1RFRCAgIGF0cmlidXRvcyBkZSBpbnN04m5jaWEKCgkvLyAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgIENhZGFzdHJvSW1hZ2VucyBQUk9URUNURUQgICAgICAg
ICAgICAgY29uc3RhbnRlcwoKCS8vICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
Q2FkYXN0cm9JbWFnZW5zIFBST1RFQ1RFRCAgICAgICAgICAgICB2YXJp4XZlaXMKCgogcHJpdmF0
ZToKCS8vICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQ2FkYXN0cm9JbWFnZW5z
IFBSSVZBVEUgICBjb25zdHJ1dG9yZXMKCgkvLyAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgIENhZGFzdHJvSW1hZ2VucyBQUklWQVRFICAgZ2V0cwoKCS8vICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgQ2FkYXN0cm9JbWFnZW5zIFBSSVZBVEUgICBzZXRzCgoJLy8g
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBDYWRhc3Ryb0ltYWdlbnMgUFJJVkFU
RSAgIHByb2Nlc3NhZG9yZXMKCgkvLyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
IENhZGFzdHJvSW1hZ2VucyBQUklWQVRFICAgb3BlcmF0b3JzCgoJLy8gICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICBDYWRhc3Ryb0ltYWdlbnMgUFJJVkFURSAgIGF0cmlidXRvcyBk
ZSBjbGFzc2UKCgkvLyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIENhZGFzdHJv
SW1hZ2VucyBQUklWQVRFICAgICAgICAgICAgIGNvbnN0YW50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