Changed files:
gcc-pr26912.patch -> 1.1.2.1
--- /dev/null
+--- gcc/gcc/cp/decl.c
++++ gcc/gcc/cp/decl.c
+@@ -7598,9 +7598,11 @@
+ are always static functions. */
+ ;
+ else
+- type = build_method_type_directly (ctype,
+- TREE_TYPE (type),
+- TYPE_ARG_TYPES (type));
++ type = (build_method_type_directly
++ (cp_build_qualified_type (ctype,
++ quals & ~TYPE_QUAL_RESTRICT),
++ TREE_TYPE (type),
++ TYPE_ARG_TYPES (type)));
+ }
+ else if (declspecs->specs[(int)ds_typedef]
+ || COMPLETE_TYPE_P (complete_type (ctype)))