Re: C++ PATCH for c++/48594 (failure with overloaded ->* in template)

2011-04-20 Thread Jason Merrill
While backporting this to 4.5 and 4.4 I noticed that making the object non-dependent shouldn't be conditionalized. Tested x86_64-pc-linux-gnu, applying to 4.6 and trunk. Applying the two patches folded together on 4.4 and 4.5. commit a39f5c2859bb16af16945830f3c0802c40441b70 Author: Jason Merri

C++ PATCH for c++/48594 (failure with overloaded ->* in template)

2011-04-13 Thread Jason Merrill
The code in build_offset_ref_from_tree was assuming that any ->* involved calling a bound pointer to member function. But that's not necessarily the case: it could be calling a pointer to function or functor by way of a pointer to data member or overloaded ->* operator. Tested x86_64-pc-linux