From: Jason Merrill Date: Thu, 10 May 2018 19:33:25 +0000 (-0400) Subject: cp-tree.h (DECL_CONSTRUCTOR_P): Use DECL_CXX_CONSTRUCTOR_P. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b947b54c3d5f50316d88d50decf14879250a9988;p=gcc.git cp-tree.h (DECL_CONSTRUCTOR_P): Use DECL_CXX_CONSTRUCTOR_P. * cp-tree.h (DECL_CONSTRUCTOR_P): Use DECL_CXX_CONSTRUCTOR_P. (DECL_DESTRUCTOR_P): Use DECL_CXX_DESTRUCTOR_P. From-SVN: r260133 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 2b9ceb29dcf..bee11129218 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,8 @@ 2018-05-09 Jason Merrill + * 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. diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 2df158c9ea6..a4e0099a249 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -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,