[Bug c++/23211] New: using dec in nested class doesn't import name
igodard at pacbell dot net
gcc-bugzilla@gcc.gnu.org
Wed Aug 3 00:22:00 GMT 2005
template<typename T>
struct foo {
typedef int itype;
typedef int jtype;
struct bar {
typedef typename foo::itype itype;
using foo::jtype;
itype i;
jtype j;
};
};
gets you:
~/ootbc/members/src$ g++ foo.cc
foo.cc:9: error: `jtype' does not name a type
Adding "typename" here and there changes the error you get but doesn't compile.
The above code compiles OK on Comeau.
--
Summary: using dec in nested class doesn't import name
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: igodard at pacbell dot net
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23211
More information about the Gcc-bugs
mailing list