This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18304] unnecessary typename expected
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Nov 2004 00:39:26 -0000
- Subject: [Bug c++/18304] unnecessary typename expected
- References: <20041104224005.18304.boris@kolpackov.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From giovannibajo at libero dot it 2004-11-05 00:39 -------
Anyway, it is invalid because a nested class (like "t") is always dependent, as
you can specialize it. think of what happens if you define this later:
template <>
struct s<void>::t {
};
(now, in this very case, it would be invalid because you cannot specialize this
nested class after having already used the primary template s<x>::t, but the
point is to show that s<x>::t is always a dependent context, even within s<x>).
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18304