Re: C++ PATCH for c++/88741 - wrong error with initializer-string

2019-01-07 Thread Jason Merrill
On 1/7/19 2:09 PM, Marek Polacek wrote: This fixes c++/88741, a bogus error with using [] in a template. Starting with the "more location wrapper nodes" patch, cp_complete_array_type can now receive a V_C_E in a CONSTRUCTOR, instead of just {"test"}, so we need to strip any location wrappers as e

C++ PATCH for c++/88741 - wrong error with initializer-string

2019-01-07 Thread Marek Polacek
This fixes c++/88741, a bogus error with using [] in a template. Starting with the "more location wrapper nodes" patch, cp_complete_array_type can now receive a V_C_E in a CONSTRUCTOR, instead of just {"test"}, so we need to strip any location wrappers as elsewhere for this code to work. Bootstrap