Re: [C++ Patch] PR 58664

2014-05-20 Thread Jason Merrill
OK. Jason

Re: [C++ Patch] PR 58664

2014-05-20 Thread Paolo Carlini
Hi, On 05/20/2014 04:50 AM, Jason Merrill wrote: On 05/19/2014 06:43 PM, Paolo Carlini wrote: if (unqualified_id) - error ("field %qD has incomplete type %qT", - unqualified_id, type); + cxx_incomplete_type_error (unqualified_id, type); else

Re: [C++ Patch] PR 58664

2014-05-19 Thread Jason Merrill
On 05/19/2014 06:43 PM, Paolo Carlini wrote: if (unqualified_id) - error ("field %qD has incomplete type %qT", -unqualified_id, type); + cxx_incomplete_type_error (unqualified_id, type); else error ("name %qT has in

Re: [C++ Patch] PR 58664

2014-05-19 Thread Paolo Carlini
... in fact, I need to be more careful when comparing the types, also because of cv-qualifiers, eg, for: struct S { const S s[1] = { 0 }; }; the trees for S and const S are definitely different. Done in the attached. Thanks, Paolo. /// /cp 2014-05-20 Paolo Carlini