]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/9381 (attribute on member function pointer have no effect)
authorJason Merrill <jason@redhat.com>
Fri, 6 Nov 2009 21:18:35 +0000 (16:18 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 6 Nov 2009 21:18:35 +0000 (16:18 -0500)
commit3c3905fc17fbaad4a0a3753fb166161154119e0b
treef9094fc4cf47ff01a50904d19522921bff716411
parent7ac8318c2daf09b9f2e1612b3add3584f58ac3b7
re PR c++/9381 (attribute on member function pointer have no effect)

PR c++/9381
* decl2.c (build_memfn_type): Preserve attributes.
(cp_reconstruct_complex_type): Likewise.
(maybe_retrofit_in_chrg): Likewise.
* call.c (standard_conversion): Use build_memfn_type.
* pt.c (tsubst): Likewise.
* decl.c (build_ptrmem_type): Likewise
(check_function_type): Preserve attributes.
* tree.c (cp_build_type_attribute_variant): Propagate exception
specs on METHOD_TYPE, too.
(strip_typedefs): Preserve exception specs and attributes.

From-SVN: r153977
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/class.c
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/pt.c
gcc/cp/tree.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/abi/regparm1.C [new file with mode: 0644]