Commit 56c5997c by Jason Merrill

revert

From-SVN: r20522
parent 1c2c08a5
1998-06-16 Jason Merrill <jason@yorick.cygnus.com> 1998-06-16 Jason Merrill <jason@yorick.cygnus.com>
* method.c (hack_identifier): Don't let a class template out.
* call.c (check_dtor_name): Split out. * call.c (check_dtor_name): Split out.
(build_scoped_method_call): Use it. (build_scoped_method_call): Use it.
(build_method_call): Use it. (build_method_call): Use it.
......
...@@ -1847,11 +1847,6 @@ hack_identifier (value, name) ...@@ -1847,11 +1847,6 @@ hack_identifier (value, name)
else if (TREE_CODE (value) == NAMESPACE_DECL) else if (TREE_CODE (value) == NAMESPACE_DECL)
/* A namespace is not really expected here; this is likely illegal code. */ /* A namespace is not really expected here; this is likely illegal code. */
return value; return value;
else if (DECL_CLASS_TEMPLATE_P (value))
{
cp_error ("use of class template `%T' as expression", value);
value = error_mark_node;
}
else else
mark_used (value); mark_used (value);
......
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