This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15538] Fails to recognize type name
- 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 10:13:42 -0000
- Subject: [Bug c++/15538] Fails to recognize type name
- References: <20040519095559.15538.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From igodard at pacbell dot net 2004-05-19 10:13 -------
Here's a simpler case:
template<typename D>
class A {public: typedef int B; typename D::Q r;};
template<typename T, template<typename>class C> class E
{public: typedef int F; typename C<T>::Q q;};
template<typename G>class H : public A<H<G> >, public E<G, H> {
public:
typedef G* Q;
};
H<bool> h;
H<bool>::Q q;
int main() {
return 0;
}
Note that I can declare "q" with the same type "G<bool>::Q" that the compiler claims doesn't exist.
Very confusing message even if my usage is invalid.
Ivan
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15538