]> gcc.gnu.org Git - gcc.git/commit
re PR c++/44193 (function types, cv-quals and typename)
authorJason Merrill <jason@redhat.com>
Wed, 19 May 2010 21:01:50 +0000 (17:01 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 19 May 2010 21:01:50 +0000 (17:01 -0400)
commit2872152c39fbc1c91da3fc07e8701fadb6b87f98
treea224afc9e9939a2cfe3c63c93d01f4adfa3c5a9d
parent1961ffb8cd83ccb0f91ce9b3015bb3290f48b04b
re PR c++/44193 (function types, cv-quals and typename)

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.

From-SVN: r159596
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/pt.c
gcc/cp/tree.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/fntype1.C [new file with mode: 0644]
This page took 0.091938 seconds and 5 git commands to generate.