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.
(build_scoped_method_call): Use it.
(build_method_call): Use it.
else if (TREE_CODE (value) == NAMESPACE_DECL)
/* A namespace is not really expected here; this is likely illegal code. */
return value;
- else if (DECL_CLASS_TEMPLATE_P (value))
- {
- cp_error ("use of class template `%T' as expression", value);
- value = error_mark_node;
- }
else
mark_used (value);