Commit 57af8358 by Mark Mitchell Committed by Mark Mitchell

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
parent 9de92eb5
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");
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment