[Bug c++/15534] Fails to inherit types from base class

igodard at pacbell dot net gcc-bugzilla@gcc.gnu.org
Wed May 19 23:47:00 GMT 2004

------- Additional Comments From igodard at pacbell dot net  2004-05-19 09:30 -------
Comment three says the original example was invalid:
"Which is invalid as t is not dependent so it needs to be declare not in the subclasses". So here is a different example where "t" *is* dependent, and it fails too.

template <class T> class A
typedef T* t;

template <class T> class B: A<T>
typedef t t1;

or am I not understanding what you mean by dependent?

g++3.4.0 gives:
foo.cc:8: error: `t' does not name a type
foo.cc:8: error: (perhaps `typename A<T>::t' was intended)


           What    |Removed                     |Added
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


More information about the Gcc-bugs mailing list