Re: C++ PATCH for c++/54277 (wrong cv-quals in lambda)

2013-03-19 Thread Ryan Mansfield
On 13-03-16 10:40 PM, Jason Merrill wrote: On 03/16/2013 03:28 PM, Jason Merrill wrote: I have no idea why the existing code tried to deduce the desired quals from current_class_ref rather than just look at the object it has. Well, maybe now I do; when I tested all my changes again before chec

Re: C++ PATCH for c++/54277 (wrong cv-quals in lambda)

2013-03-16 Thread Jason Merrill
On 03/16/2013 03:28 PM, Jason Merrill wrote: I have no idea why the existing code tried to deduce the desired quals from current_class_ref rather than just look at the object it has. Well, maybe now I do; when I tested all my changes again before checking in, this one caused a crash because I

C++ PATCH for c++/54277 (wrong cv-quals in lambda)

2013-03-16 Thread Jason Merrill
I have no idea why the existing code tried to deduce the desired quals from current_class_ref rather than just look at the object it has. That gives the wrong answer if current_class_ref is for a lambda. Tested x86_64-pc-linux-gnu, applying to trunk. commit 6a9b91f58b18503ae7a4a55fe494c0336df1