This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15359] errors specializing a template class of a template class
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 May 2004 18:11:45 -0000
- Subject: [Bug c++/15359] errors specializing a template class of a template class
- References: <20040509235749.15359.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-05-10 18:11 -------
If you want to specialize a class, you shouldn't omit the 'class'
keyword. The way specializations work is this:
---------
template <typename E>
struct F {
template<typename G> class H;
};
template <>
template<typename E>
class F<int>::H<E> {};
-----------
Your original code is still invalid, not because gcc doesn't like it
but because the standard says so.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15359