On Fri, Mar 28, 2014 at 01:46:09PM -0400, Jason Merrill wrote: > On 03/28/2014 06:47 AM, Jakub Jelinek wrote: > > * typeck.c (build_function_call_vec): Call resolve_overloaded_builtin. > > I expect this will break in templates if arguments are dependent.
The only problem with this patch is potentially ObjC, I've missed that it also calls build_function_call_vec; in c-family and cp/ proper build_function_call_vec is only called from within resolve_overloaded_builtin itself, thus it shouldn't see dependent args. Jakub