c++/789: ICE with inner class template instanciation from a template class.
Theodore.Papadopoulo@sophia.inria.fr
Theodore.Papadopoulo@sophia.inria.fr
Mon Nov 13 11:36:00 GMT 2000
>Number: 789
>Category: c++
>Synopsis: ICE with inner class template instanciation from a template class.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Mon Nov 13 11:36:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: Theo Papadopoulo & Jose Gomes
>Release: gcc version 2.97 20001103 with --enable-libstdcxx-v3 & g++ 2.95.2
>Organization:
>Environment:
The same bug appears on both i686-pc-linux-gnu and Solaris-2.6.
It should not be related to the environment.
>Description:
Both versions of g++ above ICE on the attached code.
vanuatu->g++ Polymorphic.C
Polymorphic.C: In constructor `B<T1>::B() [with T1 = float]':
Polymorphic.C:14: instantiated from here
Polymorphic.C:9: Internal compiler error in lookup_template_class, at cp/pt.c:
4057
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
>How-To-Repeat:
Just compile the file given in attachement.
>Fix:
None yet...
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="Polymorphic.C"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="Polymorphic.C"
dGVtcGxhdGUgPHR5cGVuYW1lIFQ+CnN0cnVjdCBBIHsKICAgIHRlbXBsYXRlIDx0eXBlbmFtZSBE
MT4KICAgIHN0cnVjdCBDIHsgfTsKfTsKCnRlbXBsYXRlIDx0eXBlbmFtZSBUMT4Kc3RydWN0IEIg
ewogICBCKCkgeyBBPFQxPjo6QzxpbnQ+IHMxOyB9Cn07CgppbnQgbWFpbigpCnsKICAgIEI8Zmxv
YXQ+IGI7Cn0K
More information about the Gcc-bugs
mailing list