diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-17 01:43:02 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-17 01:43:02 +0000 |
commit | d876222fa6351c13468ab132763f33047a099a58 (patch) | |
tree | a712f3c8c70737bd3e5423e01b667f9f793352e7 /gcc/cp/decl.c | |
parent | 57a9c54096c8e292255ad6cd4d79f3030d061398 (diff) | |
download | gcc-d876222fa6351c13468ab132763f33047a099a58.tar.gz |
DR 1004
* decl.c (make_unbound_class_template): Handle using
injected-type-name as template.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166850 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r-- | gcc/cp/decl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 714516e3336..55e0d6a74f5 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -3227,6 +3227,9 @@ make_unbound_class_template (tree context, tree name, tree parm_list, if (MAYBE_CLASS_TYPE_P (context)) tmpl = lookup_field (context, name, 0, false); + if (tmpl && TREE_CODE (tmpl) == TYPE_DECL) + tmpl = maybe_get_template_decl_from_type_decl (tmpl); + if (!tmpl || !DECL_CLASS_TEMPLATE_P (tmpl)) { if (complain & tf_error) |