diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2015-07-07 20:13:59 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2015-07-07 20:13:59 +0000 |
commit | 2a7fb83f490c86f530efe5a83f720c95e03f883d (patch) | |
tree | a9350a7d3fdc4335c536908bc3023cf10f4dc6ca /gcc/cp | |
parent | fe21b3c292c3d93f6102c739ab32c9aeebffc0dd (diff) | |
download | gcc-2a7fb83f490c86f530efe5a83f720c95e03f883d.zip gcc-2a7fb83f490c86f530efe5a83f720c95e03f883d.tar.gz gcc-2a7fb83f490c86f530efe5a83f720c95e03f883d.tar.bz2 |
c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
c-family/
* c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
* c-ada-spec.c (print_ada_declaration): Skip move constructors.
cp/
* decl2.c (cpp_check): Deal with IS_MOVE_CONSTRUCTOR.
From-SVN: r225525
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/decl2.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ee9402e..f393a23 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2015-07-07 Eric Botcazou <ebotcazou@adacore.com> + + * decl2.c (cpp_check): Deal with IS_MOVE_CONSTRUCTOR. + 2015-07-06 Jason Merrill <jason@redhat.com> * pt.c (reduce_template_parm_level): Also build the TYPE_DECL diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 0332aa2..cd43e62 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -4077,6 +4077,8 @@ cpp_check (tree t, cpp_operation op) return DECL_DESTRUCTOR_P (t); case IS_COPY_CONSTRUCTOR: return DECL_COPY_CONSTRUCTOR_P (t); + case IS_MOVE_CONSTRUCTOR: + return DECL_MOVE_CONSTRUCTOR_P (t); case IS_TEMPLATE: return TREE_CODE (t) == TEMPLATE_DECL; case IS_TRIVIAL: |