This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/15538] Fails to recognize type name


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]