aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@yorick.cygnus.com>1999-01-04 10:54:26 +0000
committerJason Merrill <jason@gcc.gnu.org>1999-01-04 05:54:26 -0500
commit007e5feae7519fb672d81a2681ff433186758732 (patch)
treed73b09fe6c0d1b1c02cc55b836bfe03a6b5ce9d5 /gcc
parent47e6be47d2035a88c911b7de0c3b750232758f9b (diff)
downloadgcc-007e5feae7519fb672d81a2681ff433186758732.zip
gcc-007e5feae7519fb672d81a2681ff433186758732.tar.gz
gcc-007e5feae7519fb672d81a2681ff433186758732.tar.bz2
* decl.c (grok_op_properties): Use same_type_p.
From-SVN: r24480
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/decl.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index a1d4d34..3721043 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+1999-01-04 Jason Merrill <jason@yorick.cygnus.com>
+
+ * decl.c (grok_op_properties): Use same_type_p.
+
Tue Dec 22 15:09:25 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* Makefile.in (cvt.o): Depend on toplev.h.
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 79c38f4..a022df0 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -11844,7 +11844,7 @@ grok_op_properties (decl, virtualp, friendp)
if ((name == ansi_opname[(int) POSTINCREMENT_EXPR]
|| name == ansi_opname[(int) POSTDECREMENT_EXPR])
&& ! processing_template_decl
- && TREE_VALUE (TREE_CHAIN (argtypes)) != integer_type_node)
+ && ! same_type_p (TREE_VALUE (TREE_CHAIN (argtypes)), integer_type_node))
{
if (methodp)
cp_error ("postfix `%D' must take `int' as its argument",