Commit b6241392 authored by nathan's avatar nathan
Browse files

* init.c (resolve_offset_ref): Deal with TEMPLATE_ID_EXPR.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36136 138bc75d-0d04-0410-961f-82ee72b054a4
parent 92c4f0e1
2000-09-04 Nathan Sidwell <nathan@codesourcery.com>
* init.c (resolve_offset_ref): Deal with TEMPLATE_ID_EXPR.
2000-09-04 Nathan Sidwell <nathan@codesourcery.com>
* pt.c (lookup_template_class): Remove abort.
......
......@@ -1812,7 +1812,7 @@ resolve_offset_ref (exp)
base = current_class_ref;
}
if (BASELINK_P (member))
if (BASELINK_P (member) || TREE_CODE (member) == TEMPLATE_ID_EXPR)
return build_unary_op (ADDR_EXPR, exp, 0);
if (TREE_CODE (TREE_TYPE (member)) == METHOD_TYPE)
......@@ -1824,7 +1824,7 @@ resolve_offset_ref (exp)
return build_unary_op (ADDR_EXPR, exp, 0);
}
if ((TREE_CODE (member) == VAR_DECL
&& ! TYPE_PTRMEMFUNC_P (TREE_TYPE (member))
&& ! TYPE_PTRMEM_P (TREE_TYPE (member)))
......
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