Commit e271912d by Jason Merrill Committed by Jason Merrill

tree.c (cp_build_qualified_type_real): If we're asking for the same quals we…

tree.c (cp_build_qualified_type_real): If we're asking for the same quals we already have, just return.

	* tree.c (cp_build_qualified_type_real): If we're asking for the
	same quals we already have, just return.

From-SVN: r28886
parent 5879933a
1999-08-25 Jason Merrill <jason@yorick.cygnus.com>
* tree.c (cp_build_qualified_type_real): If we're asking for the
same quals we already have, just return.
1999-08-25 Mark Mitchell <mark@codesourcery.com> 1999-08-25 Mark Mitchell <mark@codesourcery.com>
* cp-tree.def (SUBOBJECT): New tree node. * cp-tree.def (SUBOBJECT): New tree node.
......
...@@ -509,6 +509,9 @@ cp_build_qualified_type_real (type, type_quals, complain) ...@@ -509,6 +509,9 @@ cp_build_qualified_type_real (type, type_quals, complain)
if (type == error_mark_node) if (type == error_mark_node)
return type; return type;
if (type_quals == TYPE_QUALS (type))
return type;
/* A restrict-qualified pointer type must be a pointer (or reference) /* A restrict-qualified pointer type must be a pointer (or reference)
to object or incomplete type. */ to object or incomplete type. */
if ((type_quals & TYPE_QUAL_RESTRICT) if ((type_quals & TYPE_QUAL_RESTRICT)
......
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