[Bug c++/17501] [3.4/4.0 regression] Confusion with member templates
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Sep 16 15:36:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list