This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16934] template-in-the-template explicit specialization, problem with inlined
- From: "hidden_peak at mail dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Aug 2004 13:51:36 -0000
- Subject: [Bug c++/16934] template-in-the-template explicit specialization, problem with inlined
- References: <20040809120338.16934.hidden_peak@mail.ru>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From hidden_peak at mail dot ru 2004-08-10 13:51 -------
Nice, but there are not solution for gcc 3.4.1 for such code
(no way to declare specialization):
struct X
{
template<typename T>
struct Y
{
typedef char type;
};
// template<> struct Y<int>; // <-- error, if uncommented
typedef Y<int>::type type;
};
template<> // <-- error, already instantiated
struct X::Y<int>
{
typedef int type;
};
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16934