* tree.c (cp_build_qualified_type_real): If we're asking for the
same quals we already have, just return.
From-SVN: r28886
+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>
* cp-tree.def (SUBOBJECT): New tree node.
if (type == error_mark_node)
return type;
-
+
+ if (type_quals == TYPE_QUALS (type))
+ return type;
+
/* A restrict-qualified pointer type must be a pointer (or reference)
to object or incomplete type. */
if ((type_quals & TYPE_QUAL_RESTRICT)