Lines Matching refs:old_decl
1171 tree old_decl) in check_redeclaration_exception_specification() argument
1174 tree old_exceptions = TYPE_RAISES_EXCEPTIONS (TREE_TYPE (old_decl)); in check_redeclaration_exception_specification()
1181 if (!type_dependent_expression_p (old_decl)) in check_redeclaration_exception_specification()
1184 maybe_instantiate_noexcept (old_decl); in check_redeclaration_exception_specification()
1187 old_exceptions = TYPE_RAISES_EXCEPTIONS (TREE_TYPE (old_decl)); in check_redeclaration_exception_specification()
1195 if (! DECL_IS_BUILTIN (old_decl) in check_redeclaration_exception_specification()
1203 if (DECL_IN_SYSTEM_HEADER (old_decl)) in check_redeclaration_exception_specification()
1212 inform (DECL_SOURCE_LOCATION (old_decl), in check_redeclaration_exception_specification()
1213 "from previous declaration %qF", old_decl); in check_redeclaration_exception_specification()
1221 validate_constexpr_redeclaration (tree old_decl, tree new_decl) in validate_constexpr_redeclaration() argument
1223 old_decl = STRIP_TEMPLATE (old_decl); in validate_constexpr_redeclaration()
1225 if (!VAR_OR_FUNCTION_DECL_P (old_decl) in validate_constexpr_redeclaration()
1228 if (DECL_DECLARED_CONSTEXPR_P (old_decl) in validate_constexpr_redeclaration()
1231 if (TREE_CODE (old_decl) != FUNCTION_DECL) in validate_constexpr_redeclaration()
1233 if (DECL_IMMEDIATE_FUNCTION_P (old_decl) in validate_constexpr_redeclaration()
1237 if (TREE_CODE (old_decl) == FUNCTION_DECL) in validate_constexpr_redeclaration()
1239 if (fndecl_built_in_p (old_decl)) in validate_constexpr_redeclaration()
1242 DECL_DECLARED_CONSTEXPR_P (old_decl) in validate_constexpr_redeclaration()
1245 SET_DECL_IMMEDIATE_FUNCTION_P (old_decl); in validate_constexpr_redeclaration()
1251 if (! DECL_TEMPLATE_SPECIALIZATION (old_decl) in validate_constexpr_redeclaration()
1256 if (DECL_IMMEDIATE_FUNCTION_P (old_decl) in validate_constexpr_redeclaration()
1263 inform (DECL_SOURCE_LOCATION (old_decl), in validate_constexpr_redeclaration()
1264 "previous declaration %qD", old_decl); in validate_constexpr_redeclaration()
9911 tree old_decl = check_classfn (ctype, decl, in grokfndecl() local
9917 if (old_decl == error_mark_node) in grokfndecl()
9920 if (old_decl) in grokfndecl()
9925 if (TREE_CODE (old_decl) == TEMPLATE_DECL) in grokfndecl()
9930 old_decl = DECL_TEMPLATE_RESULT (old_decl); in grokfndecl()
9932 if (DECL_STATIC_FUNCTION_P (old_decl) in grokfndecl()
9939 if (DECL_ARTIFICIAL (old_decl)) in grokfndecl()
9941 error ("definition of implicitly-declared %qD", old_decl); in grokfndecl()
9944 else if (DECL_DEFAULTED_FN (old_decl)) in grokfndecl()
9947 inform (DECL_SOURCE_LOCATION (old_decl), in grokfndecl()
9948 "%q#D explicitly defaulted here", old_decl); in grokfndecl()
9960 ok = duplicate_decls (decl, old_decl, friendp); in grokfndecl()
9971 return old_decl; in grokfndecl()