FreeBSD/contrib/gcc/cp/parser.c
/* Issue an error about name-lookup failing.  NAME is the
   IDENTIFIER_NODE DECL is the result of
   the lookup (as returned from cp_parser_lookup_name).  DESIRED is
   the thing that we hoped to find.  */
Issue an error about name-lookup failing.  NAME is the
IDENTIFIER_NODE DECL is the result of
the lookup (as returned from cp_parser_lookup_name).  DESIRED is
the thing that we hoped to find.
Issue an error about name - lookup failing . NAME is the IDENTIFIER_NODE DECL is the result of the lookup ( as returned from cp_parser_lookup_name ) . DESIRED is the thing that we hoped to find .
static void
cp_parser_name_lookup_error (cp_parser* parser,
			     tree name,
			     tree decl,
			     const char* desired)
{
  if (decl == error_mark_node)
    {
      if (parser->scope && parser->scope != global_namespace)
	error ("%<%D::%D%> has not been declared",
	       parser->scope, name);
      else if (parser->scope == global_namespace)
	error ("%<::%D%> has not been declared", name);
      else if (parser->object_scope
	       && !CLASS_TYPE_P (parser->object_scope))
	error ("request for member %qD in non-class type %qT",
	       name, parser->object_scope);
      else if (parser->object_scope)
	error ("%<%T::%D%> has not been declared",
	       parser->object_scope, name);
      else
	error ("%qD has not been declared", name);
    }
  else if (parser->scope && parser->scope != global_namespace)
    error ("%<%D::%D%> %s", parser->scope, name, desired);
  else if (parser->scope == global_namespace)
    error ("%<::%D%> %s", name, desired);
  else
    error ("%qD %s", name, desired);
}
static void cp_parser_name_lookup_error ( cp_parser * parser , tree name , tree decl , const char * desired ) { if ( decl == error_mark_node ) { if ( parser -> scope && parser -> scope != global_namespace ) error ( " " , parser -> scope , name ) ; else if ( parser -> scope == global_namespace ) error ( " " , name ) ; else if ( parser -> object_scope && ! CLASS_TYPE_P ( parser -> object_scope ) ) error ( " " , name , parser -> object_scope ) ; else if ( parser -> object_scope ) error ( " " , parser -> object_scope , name ) ; else error ( " " , name ) ; } else if ( parser -> scope && parser -> scope != global_namespace ) error ( " " , parser -> scope , name , desired ) ; else if ( parser -> scope == global_namespace ) error ( " " , name , desired ) ; else error ( " " , name , desired ) ; }
Issue an error about name-lookup failing.
Issue an error about name - lookup failing .
/* If name lookup completely failed, tell the user that NAME was not
     declared.  */