C PATCH for c/70859 (Bad column number in type-generic function errors)

Joseph Myers joseph@codesourcery.com
Tue May 3 17:06:00 GMT 2016


On Tue, 3 May 2016, Marek Polacek wrote:

> 2016-05-03  Marek Polacek  <polacek@redhat.com>
> 
> 	PR c/70859
> 	* input.c (expansion_point_location): New function.
> 	* input.h (expansion_point_location): Declare.
> 
> 	* c-common.c (builtin_function_validate_nargs): Add location
> 	parameter.  Use it.
> 	(check_builtin_function_arguments): Add location and arguments
> 	parameters.  Use them.
> 	* c-common.h (check_builtin_function_arguments): Update declaration.
> 
> 	* c-typeck.c (build_function_call_vec): Pass LOC and ARG_LOC down to
> 	check_builtin_function_arguments.
> 
> 	* call.c (build_cxx_call): Pass location and vNULL down to
> 	check_builtin_function_arguments.
> 
> 	* gcc.dg/pr70859.c: New test.
> 	* gcc.dg/pr70859-2.c: New test.

OK.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Gcc-patches mailing list