From-SVN: r20522
This commit is contained in:
Jason Merrill 1998-06-15 23:18:08 -04:00
parent 1c2c08a553
commit 56c5997c8e
2 changed files with 0 additions and 7 deletions

View File

@ -1,7 +1,5 @@
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.

View File

@ -1847,11 +1847,6 @@ hack_identifier (value, name)
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);