Commit 55df0175 by Nathan Sidwell Committed by Nathan Sidwell

typeck.c (dubious_conversion_warnings): Look through REFERENCE_TYPE.

	* typeck.c (dubious_conversion_warnings): Look through
	REFERENCE_TYPE.

From-SVN: r32360
parent efd3d4a6
2000-03-06 Nathan Sidwell <nathan@codesourcery.com>
* typeck.c (dubious_conversion_warnings): Look through
REFERENCE_TYPE.
Mon Mar 6 08:46:47 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* lang-specs.h (as): Don't call if -syntax-only.
......
......@@ -6433,6 +6433,9 @@ dubious_conversion_warnings (type, expr, errtype, fndecl, parmnum)
tree fndecl;
int parmnum;
{
if (TREE_CODE (type) == REFERENCE_TYPE)
type = TREE_TYPE (type);
/* Issue warnings about peculiar, but legal, uses of NULL. */
if (ARITHMETIC_TYPE_P (type) && expr == null_node)
{
......
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