OSDN Git Service

* decl.c (grokdeclarator): Don't check quals on fn type.
[pf3gnuchains/gcc-fork.git] / gcc / cp / ChangeLog
index 0d927c9..26eaafc 100644 (file)
@@ -1,3 +1,27 @@
+2010-05-19  Jason Merrill  <jason@redhat.com>
+
+       * decl.c (grokdeclarator): Don't check quals on fn type.
+       * typeck.c (cp_apply_type_quals_to_decl): Likewise.
+       * tree.c (cp_build_qualified_type_real): Simplify qualifier checking.
+
+       PR c++/44193
+       * typeck.c (type_memfn_quals): New fn.
+       (apply_memfn_quals): New fn.
+       (cp_type_quals): Return TYPE_UNQUALIFIED for FUNCTION_TYPE.
+       (cp_type_readonly): Use cp_type_quals.
+       * cp-tree.h: Add declarations.
+       * tree.c (cp_build_qualified_type_real): Don't set, but do
+       preserve, quals on FUNCTION_TYPE.
+       (strip_typedefs): Use apply_memfn_quals and type_memfn_quals.
+       * decl.c (build_ptrmem_type): Likewise.
+       (grokdeclarator): Likewise.
+       (static_fn_type): Likewise.
+       * decl2.c (change_return_type): Likewise.
+       (cp_reconstruct_complex_type): Likewise.
+       * pt.c (tsubst_function_type): Likewise.
+       (unify): Likewise.
+       (tsubst): Likewise.  Drop special FUNCTION_TYPE substitution code.
+
 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
 
        * tree.c (build_min_non_dep_call_vec): Update comment.