[Bug c++/37140] type inherited from base class not recognized
fang at csl dot cornell dot edu
gcc-bugzilla@gcc.gnu.org
Sat Sep 27 22:11:00 GMT 2008
------- Comment #2 from fang at csl dot cornell dot edu 2008-09-27 22:09 -------
With the test case, I get the same diagnostic with g++-4.3.2.
I'm not sure if the in-class using directive is supposed to work as you
expected, but what I usually write is (using your example):
template<class X> class B: A<X>{
public:
typedef typename A<X>::o_t o_t;
B(){typename o_t::type_t x;}
};
... which compiles for me.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37140
More information about the Gcc-bugs
mailing list