FreeBSD/contrib/gcc/cp/decl.c
/* NEW_DECL is a redeclaration of OLD_DECL; both are functions or
   function templates.  If their exception specifications do not
   match, issue an a diagnostic.  */
NEW_DECL is a redeclaration of OLD_DECL; both are functions or
function templates.  If their exception specifications do not
match, issue an a diagnostic.
NEW_DECL is a redeclaration of OLD_DECL ; both are functions or function templates . If their exception specifications do not match issue an a diagnostic .
static void
check_redeclaration_exception_specification (tree new_decl,
					     tree old_decl)
{
  tree new_type;
  tree old_type;
  tree new_exceptions;
  tree old_exceptions;
  new_type = TREE_TYPE (new_decl);
  new_exceptions = TYPE_RAISES_EXCEPTIONS (new_type);
  old_type = TREE_TYPE (old_decl);
  old_exceptions = TYPE_RAISES_EXCEPTIONS (old_type);
  if ((pedantic || ! DECL_IN_SYSTEM_HEADER (old_decl))
      && ! DECL_IS_BUILTIN (old_decl)
      && flag_exceptions
      && !comp_except_specs (new_exceptions, old_exceptions,
			     true))
    {
      error ("declaration of %qF throws different exceptions", new_decl);
      error ("from previous declaration %q+F", old_decl);
    }
}
static void check_redeclaration_exception_specification ( tree new_decl , tree old_decl ) { tree new_type ; tree old_type ; tree new_exceptions ; tree old_exceptions ; new_type = TREE_TYPE ( new_decl ) ; new_exceptions = TYPE_RAISES_EXCEPTIONS ( new_type ) ; old_type = TREE_TYPE ( old_decl ) ; old_exceptions = TYPE_RAISES_EXCEPTIONS ( old_type ) ; if ( ( pedantic || ! DECL_IN_SYSTEM_HEADER ( old_decl ) ) && ! DECL_IS_BUILTIN ( old_decl ) && flag_exceptions && ! comp_except_specs ( new_exceptions , old_exceptions , true ) ) { error ( " " , new_decl ) ; error ( " " , old_decl ) ; } }
NEW_DECL is a redeclaration of OLD_DECL; both are functions or
function templates.
NEW_DECL is a redeclaration of OLD_DECL ; both are functions or function templates .
/* [except.spec]

     If any declaration of a function has an exception-specification,
     all declarations, including the definition and an explicit
     specialization, of that function shall have an
     exception-specification with the same set of type-ids.  */ /*exact=*/