decl.c (grokparms): Distinguish between references and pointers in error message.
* decl.c (grokparms): Distinguish between references and pointers in error message. From-SVN: r22328
This commit is contained in:
parent
9de92eb5d0
commit
57af83585d
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
1998-09-08 Mark Mitchell <mark@markmitchell.com>
|
||||
|
||||
* decl.c (grokparms): Distinguish between references and pointers
|
||||
in error message.
|
||||
|
||||
1998-09-08 Richard Henderson <rth@cygnus.com>
|
||||
Mark Mitchell <mark@markmitchell.com>
|
||||
|
||||
|
|
|
@ -10916,8 +10916,9 @@ grokparms (first_parm, funcdef_flag)
|
|||
&& TYPE_DOMAIN (t) != NULL_TREE))
|
||||
t = TREE_TYPE (t);
|
||||
if (TREE_CODE (t) == ARRAY_TYPE)
|
||||
cp_error ("parameter type `%T' includes pointer to array of unknown bound",
|
||||
type);
|
||||
cp_error ("parameter type `%T' includes %s to array of unknown bound",
|
||||
type,
|
||||
TYPE_PTR_P (type) ? "pointer" : "reference");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue