]> git.pld-linux.org Git - packages/gcc.git/commitdiff
- fix `friend const member function specialization fails to compile`.
authorPaweł Sikora <pluto@pld-linux.org>
Mon, 1 May 2006 16:11:20 +0000 (16:11 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    gcc-pr26912.patch -> 1.1.2.1

gcc-pr26912.patch [new file with mode: 0644]

diff --git a/gcc-pr26912.patch b/gcc-pr26912.patch
new file mode 100644 (file)
index 0000000..17f2ee2
--- /dev/null
@@ -0,0 +1,17 @@
+--- 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)))
This page took 0.044909 seconds and 4 git commands to generate.