Commit 8402fd4f by Mark Mitchell

tree.c (cp_build_qualified_type_real): Handle pointer-to-member-function types correctly.

	* tree.c (cp_build_qualified_type_real): Handle
	pointer-to-member-function types correctly.

From-SVN: r28551
parent 2adeacc9
......@@ -583,7 +583,7 @@ cp_build_qualified_type_real (type, type_quals, complain)
t = TYPE_PTRMEMFUNC_FN_TYPE (type);
t = cp_build_qualified_type_real (t, type_quals, complain);
return build_ptrmemfunc_type (t);
return build_qualified_type (build_ptrmemfunc_type (t), type_quals);
}
/* Retrieve (or create) the appropriately qualified variant. */
......
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