From 007e5feae7519fb672d81a2681ff433186758732 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Mon, 4 Jan 1999 10:54:26 +0000 Subject: [PATCH] * decl.c (grok_op_properties): Use same_type_p. From-SVN: r24480 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/decl.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index a1d4d34b63a..372104326a4 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +1999-01-04 Jason Merrill + + * decl.c (grok_op_properties): Use same_type_p. + Tue Dec 22 15:09:25 1998 Kaveh R. Ghazi * Makefile.in (cvt.o): Depend on toplev.h. diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 79c38f4323f..a022df0ec5e 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", -- 2.30.2