Re: [C++ Patch] for c++/11750

2012-11-08 Thread Jason Merrill
On 08/13/2012 04:49 PM, Fabien Chêne wrote: + /* Optimize away vtable lookup if we know that this +function can't be overridden. We need to check if +the context and the instance type are the same, +actually FN migth be defined in a dif

Re: [C++ Patch] for c++/11750

2012-11-06 Thread Fabien Chêne
Jason, could you please have a look at this (rather old) one ? Thanks. 2012/8/13 Fabien Chêne : > Hi, > > Here, we were setting the LOOKUP_NONVIRTUAL flag wrongly. Actually, we > need to check if the function context is the same than the instance > type -- yes that might happen that they be differ

[C++ Patch] for c++/11750

2012-08-13 Thread Fabien Chêne
Hi, Here, we were setting the LOOKUP_NONVIRTUAL flag wrongly. Actually, we need to check if the function context is the same than the instance type -- yes that might happen that they be different in presence of using-declarations. It happens that it was working if the call was invoked through a p