re PR c++/52282 ([C++0x] rejects-valid issues with decltype/constexpr)
authorJason Merrill <jason@redhat.com>
Mon, 17 Nov 2014 17:00:38 +0000 (12:00 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 17 Nov 2014 17:00:38 +0000 (12:00 -0500)
commit35abb8ed23a3d2d1d4e0ab95c2da4f197089ce17
treeaf183c88efc573185903a522afb12f621645f17c
parent72a4a8b0bc09f7600e05887f25de2cf9422e9d43
re PR c++/52282 ([C++0x] rejects-valid issues with decltype/constexpr)

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.

From-SVN: r217660
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/tree.c
gcc/testsuite/g++.dg/cpp0x/constexpr-decltype1.C [new file with mode: 0644]