Index: gcc/cp/decl.c =================================================================== --- gcc/cp/decl.c (revision 140838) +++ gcc/cp/decl.c (working copy) @@ -6531,10 +6531,10 @@ grokfndecl (tree ctype, { case sfk_constructor: case sfk_copy_constructor: - DECL_CONSTRUCTOR_P (decl) = 1; + DECL_CONSTRUCTOR_P (decl) = (ctype != NULL_TREE); break; case sfk_destructor: - DECL_DESTRUCTOR_P (decl) = 1; + DECL_DESTRUCTOR_P (decl) = (ctype != NULL_TREE); break; default: break;