This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17080] internal compiler error on template class in template class;
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Aug 2004 12:57:35 -0000
- Subject: [Bug c++/17080] internal compiler error on template class in template class;
- References: <20040818123212.17080.pippadav@dei.unipd.it>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-08-18 12:57 -------
Your code is invalid. You should write
template <class U>
class Collection : public SubClass<CollectionServices<U>::template CoreService>
instead of
template <class U>
class Collection : public SubClass<CollectionServices<U>::CoreService>
The code then compiles fine (since gcc 3.1).
The ICE for the invalid code was fixed in gcc 3.4.0,
and since it's not a regression I'm closing the PR.
(I'm sure it's a duplicate of some other PR, but I can't find which one.)
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17080