FreeBSD/contrib/gcc/cp/error.c
/* Report the full context of a current template instantiation,
   onto BUFFER.  */
Report the full context of a current template instantiation,
onto BUFFER.
Report the full context of a current template instantiation onto BUFFER .
static void
print_instantiation_full_context (diagnostic_context *context)
{
  tree p = current_instantiation ();
  location_t location = input_location;
  if (p)
    {
      if (current_function_decl != TINST_DECL (p)
	  && current_function_decl != NULL_TREE)
	;
      else
	{
	  if (current_function_decl == TINST_DECL (p))
	    ;
	  else
	    pp_verbatim (context->printer,
			 "%s: In instantiation of %qs:\n",
			 LOCATION_FILE (location),
			 decl_as_string (TINST_DECL (p),
					 TFF_DECL_SPECIFIERS | TFF_RETURN_TYPE));
	  location = TINST_LOCATION (p);
	  p = TREE_CHAIN (p);
	}
    }
  print_instantiation_partial_context (context, p, location);
}
static void print_instantiation_full_context ( diagnostic_context * context ) { tree p = current_instantiation ( ) ; location_t location = input_location ; if ( p ) { if ( current_function_decl != TINST_DECL ( p ) && current_function_decl != NULL_TREE ) ; else { if ( current_function_decl == TINST_DECL ( p ) ) ; else pp_verbatim ( context -> printer , " \n " , LOCATION_FILE ( location ) , decl_as_string ( TINST_DECL ( p ) , TFF_DECL_SPECIFIERS | TFF_RETURN_TYPE ) ) ; location = TINST_LOCATION ( p ) ; p = TREE_CHAIN ( p ) ; } } print_instantiation_partial_context ( context , p , location ) ; }
Report the full context of a current template instantiation,
onto BUFFER.
Report the full context of a current template instantiation onto BUFFER .
/* We can get here during the processing of some synthesized
	   method.  Then, TINST_DECL (p) will be the function that's causing
	   the synthesis.  */ /* Avoid redundancy with the "In function" line.  */