FreeBSD/contrib/gcc/cp/decl.c
/* Generate errors possibly applicable for a given set of specifiers.
   This is for ARM $7.1.2.  */
Generate errors possibly applicable for a given set of specifiers.
Generate errors possibly applicable for a given set of specifiers .
static void
bad_specifiers (tree object,
		const char* type,
		int virtualp,
		int quals,
		int inlinep,
		int friendp,
		int raises)
{
  if (virtualp)
    error ("%qD declared as a %<virtual%> %s", object, type);
  if (inlinep)
    error ("%qD declared as an %<inline%> %s", object, type);
  if (quals)
    error ("%<const%> and %<volatile%> function specifiers on "
	   "%qD invalid in %s declaration",
	   object, type);
  if (friendp)
    error ("%q+D declared as a friend", object);
  if (raises
      && (TREE_CODE (object) == TYPE_DECL
	  || (!TYPE_PTRFN_P (TREE_TYPE (object))
	      && !TYPE_REFFN_P (TREE_TYPE (object))
	      && !TYPE_PTRMEMFUNC_P (TREE_TYPE (object)))))
    error ("%q+D declared with an exception specification", object);
}
static void bad_specifiers ( tree object , const char * type , int virtualp , int quals , int inlinep , int friendp , int raises ) { if ( virtualp ) error ( " " , object , type ) ; if ( inlinep ) error ( " " , object , type ) ; if ( quals ) error ( " " " " , object , type ) ; if ( friendp ) error ( " " , object ) ; if ( raises && ( TREE_CODE ( object ) == TYPE_DECL || ( ! TYPE_PTRFN_P ( TREE_TYPE ( object ) ) && ! TYPE_REFFN_P ( TREE_TYPE ( object ) ) && ! TYPE_PTRMEMFUNC_P ( TREE_TYPE ( object ) ) ) ) ) error ( " " , object ) ; }
Generate errors possibly applicable for a given set of specifiers.
Generate errors possibly applicable for a given set of specifiers .