diff options
author | Jason Merrill <jason@gcc.gnu.org> | 1998-06-15 23:18:08 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1998-06-15 23:18:08 -0400 |
commit | 56c5997c8e8cdd396d205d234bc4c9abd8c30369 (patch) | |
tree | 919ea2fc31a2a327e852de4483c6f61a17b593a6 | |
parent | 1c2c08a5531fb816f8da4599428d6a8223dd3d5a (diff) | |
download | gcc-56c5997c8e8cdd396d205d234bc4c9abd8c30369.zip gcc-56c5997c8e8cdd396d205d234bc4c9abd8c30369.tar.gz gcc-56c5997c8e8cdd396d205d234bc4c9abd8c30369.tar.bz2 |
revert
From-SVN: r20522
-rw-r--r-- | gcc/cp/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/cp/method.c | 5 |
2 files changed, 0 insertions, 7 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ea7f271..72943d1 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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. diff --git a/gcc/cp/method.c b/gcc/cp/method.c index 1414870..cc01371 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -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); |