* decl.c (grok_op_properties): Use same_type_p.
From-SVN: r24480
This commit is contained in:
parent
47e6be47d2
commit
007e5feae7
2 changed files with 5 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue