Commit fa1f3ebc by Kriang Lerdsuwanakij Committed by Jason Merrill

parse.y (template_arg): Add rule for template qualified with global scope.

        * parse.y (template_arg): Add rule for template qualified with
        global scope.

From-SVN: r35654
parent 9845b52b
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> 2000-08-11 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
* decl2.c (add_function): Reorganize. * decl2.c (add_function): Reorganize.
......
...@@ -1065,6 +1065,12 @@ template_arg: ...@@ -1065,6 +1065,12 @@ template_arg:
if (DECL_TEMPLATE_TEMPLATE_PARM_P ($$)) if (DECL_TEMPLATE_TEMPLATE_PARM_P ($$))
$$ = TREE_TYPE ($$); $$ = TREE_TYPE ($$);
} }
| global_scope PTYPENAME
{
$$ = lastiddecl;
if (DECL_TEMPLATE_TEMPLATE_PARM_P ($$))
$$ = TREE_TYPE ($$);
}
| expr_no_comma_rangle | expr_no_comma_rangle
; ;
......
// 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;
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment