This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17501] [3.4/4.0 regression] Confusion with member templates
- 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: 16 Sep 2004 15:36:20 -0000
- Subject: [Bug c++/17501] [3.4/4.0 regression] Confusion with member templates
- References: <20040915150453.17501.larsbj@gullik.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-09-16 15:36 -------
Here's something slightly simpler:
=================================
template<int> struct A;
template<> struct A<0>
{
struct B
{
struct C
{
typedef int D;
};
};
};
template<int I> struct E
{
typename A<I>::B::C::D i;
};
=================================
Compiling this I get the error message:
x.cc:16: error: `#`typename_type' not supported by dump_decl#<declaration
error>::C' is not a class or namespace
x.cc:16: error: expected nested-name-specifier before "D"
x.cc:16: error: `D' does not name a type
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17501