diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-11-17 17:00:38 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-11-17 17:00:38 +0000 |
commit | 6b23c9879bef95a98acb0826d706ab974f47c840 (patch) | |
tree | af183c88efc573185903a522afb12f621645f17c /gcc/cp/decl2.c | |
parent | 23de2c1dc774f7952c7d7e444471c40321871133 (diff) | |
download | gcc-6b23c9879bef95a98acb0826d706ab974f47c840.tar.gz |
PR c++/52282
* decl.c (build_ptrmemfunc_type): Don't build a different
RECORD_TYPE for a qualified PMF.
* cp-tree.h (TYPE_PTRMEMFUNC_FN_TYPE): Merge cv-quals.
(TYPE_PTRMEMFUNC_FN_TYPE_RAW): New.
* decl2.c (cplus_decl_attributes): Use TYPE_PTRMEMFUNC_FN_TYPE_RAW.
* tree.c (cp_walk_subtrees): Likewise.
(cp_build_qualified_type_real): Remove special PMF handling.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217660 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r-- | gcc/cp/decl2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 1b686ef95ae..fb8d0c82e40 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -1474,7 +1474,7 @@ cplus_decl_attributes (tree *decl, tree attributes, int flags) { attributes = decl_attributes (decl, attributes, flags | ATTR_FLAG_FUNCTION_NEXT); - decl_attributes (&TYPE_PTRMEMFUNC_FN_TYPE (TREE_TYPE (*decl)), + decl_attributes (&TYPE_PTRMEMFUNC_FN_TYPE_RAW (TREE_TYPE (*decl)), attributes, flags); } else |