This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/789: ICE with inner class template instanciation from a template class.
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/789: ICE with inner class template instanciation from a template class.
- From: Theodore dot Papadopoulo at sophia dot inria dot fr
- Date: 13 Nov 2000 19:26:22 -0000
- Cc: Jose dot Gomes at sophia dot inria dot fr
- Reply-To: Theodore dot Papadopoulo at sophia dot inria dot fr
>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