This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15534] Fails to inherit types from base class
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 May 2004 09:30:02 -0000
- Subject: [Bug c++/15534] Fails to inherit types from base class
- References: <20040519030420.15534.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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)
Ivan
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15534