SOURCES (GCC_4_1): gcc-pr26912.patch (NEW) - fix `friend const mem...

pluto pluto at pld-linux.org
Mon May 1 18:11:25 CEST 2006


Author: pluto                        Date: Mon May  1 16:11:25 2006 GMT
Module: SOURCES                       Tag: GCC_4_1
---- Log message:
- fix `friend const member function specialization fails to compile`.

---- Files affected:
SOURCES:
   gcc-pr26912.patch (NONE -> 1.1.2.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/gcc-pr26912.patch
diff -u /dev/null SOURCES/gcc-pr26912.patch:1.1.2.1
--- /dev/null	Mon May  1 18:11:25 2006
+++ SOURCES/gcc-pr26912.patch	Mon May  1 18:11:20 2006
@@ -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)))
================================================================


More information about the pld-cvs-commit mailing list