]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cp-tree.h (DECL_CONSTRUCTOR_P): Use DECL_CXX_CONSTRUCTOR_P.
authorJason Merrill <jason@redhat.com>
Thu, 10 May 2018 19:33:25 +0000 (15:33 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 10 May 2018 19:33:25 +0000 (15:33 -0400)
* cp-tree.h (DECL_CONSTRUCTOR_P): Use DECL_CXX_CONSTRUCTOR_P.

(DECL_DESTRUCTOR_P): Use DECL_CXX_DESTRUCTOR_P.

From-SVN: r260133

gcc/cp/ChangeLog
gcc/cp/cp-tree.h

index 2b9ceb29dcf795fcf8e7b62faa5d84c1efd0be72..bee111292181b545dae0318d8b5e0de65d5460df 100644 (file)
@@ -1,5 +1,8 @@
 2018-05-09  Jason Merrill  <jason@redhat.com>
 
+       * cp-tree.h (DECL_CONSTRUCTOR_P): Use DECL_CXX_CONSTRUCTOR_P.
+       (DECL_DESTRUCTOR_P): Use DECL_CXX_DESTRUCTOR_P.
+
        Core issue 2310 - conversion to base of incomplete type.
        * class.c (build_base_path): Check COMPLETE_TYPE_P for source type.
 
index 2df158c9ea69c38ca0dcd13d2a39bd68169a6a9d..a4e0099a24925513de153324a1216be0d5ea8e67 100644 (file)
@@ -2731,7 +2731,7 @@ struct GTY(()) lang_decl {
 /* For FUNCTION_DECLs and TEMPLATE_DECLs: nonzero means that this function
    is a constructor.  */
 #define DECL_CONSTRUCTOR_P(NODE) \
-  IDENTIFIER_CTOR_P (DECL_NAME (NODE))
+  DECL_CXX_CONSTRUCTOR_P (STRIP_TEMPLATE (NODE))
 
 /* Nonzero if NODE (a FUNCTION_DECL) is a constructor for a complete
    object.  */
@@ -2760,7 +2760,7 @@ struct GTY(()) lang_decl {
 /* Nonzero if NODE (a FUNCTION_DECL or TEMPLATE_DECL)
    is a destructor.  */
 #define DECL_DESTRUCTOR_P(NODE)                                \
-  IDENTIFIER_DTOR_P (DECL_NAME (NODE))
+  DECL_CXX_DESTRUCTOR_P (STRIP_TEMPLATE (NODE))
 
 /* Nonzero if NODE (a FUNCTION_DECL) is a destructor, but not the
    specialized in-charge constructor, in-charge deleting constructor,