* parse.y (template_arg): Add rule for template qualified with
global scope.
From-SVN: r35654
+2000-08-11 Kriang Lerdsuwanakij <lerdsuwa@scf-fs.usc.edu>
+
+ * parse.y (template_arg): Add rule for template qualified with
+ global scope.
+
2000-08-11 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
* decl2.c (add_function): Reorganize.
if (DECL_TEMPLATE_TEMPLATE_PARM_P ($$))
$$ = TREE_TYPE ($$);
}
+ | global_scope PTYPENAME
+ {
+ $$ = lastiddecl;
+ if (DECL_TEMPLATE_TEMPLATE_PARM_P ($$))
+ $$ = TREE_TYPE ($$);
+ }
| expr_no_comma_rangle
;
--- /dev/null
+// Build don't link:
+// Origin: Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
+
+template <template <class> class TT> class X {};
+template <class T> class Y {
+ X< ::Y> x;
+};