PR c++/10749
* parser.c (cp_parser_class_head): See through dependent names
when parsing a class-head.
PR c++/10749
* g++.dg/template/memclass2.C: New test.
From-SVN: r68276
2003-06-20 Mark Mitchell <mark@codesourcery.com>
+ PR c++/10749
+ * parser.c (cp_parser_class_head): See through dependent names
+ when parsing a class-head.
+
PR c++/10845
* pt.c (try_class_unification): Correct handling of member class
templates.
nested_name_specifier
= cp_parser_nested_name_specifier_opt (parser,
/*typename_keyword_p=*/false,
- /*check_dependency_p=*/true,
+ /*check_dependency_p=*/false,
/*type_p=*/false);
/* If there was a nested-name-specifier, then there *must* be an
identifier. */
+2003-06-20 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/10749
+ * g++.dg/template/memclass2.C: New test.
+
2003-06-20 Mark Mitchell <mark@codesourcery.com>
Eric Botcazou <ebotcazou@libertysurf.fr>
--- /dev/null
+namespace ns {
+ template<typename T>
+ struct Foo {
+ template<typename U> struct Bar;
+ };
+
+ template<typename T>
+ template<typename U>
+ struct Foo<T>::Bar {
+ template<typename V> struct Baz;
+ };
+
+ template<typename T>
+ template<typename U>
+ template<typename V>
+ struct Foo<T>::Bar<U>::Baz {
+ Foo<T> chokes;
+ ns::Foo<T> works;
+ };
+}