On 11/26/2013 05:40 AM, Paolo Carlini wrote:
Hi,

On 11/23/2013 11:35 PM, Jason Merrill wrote:
On 10/20/2013 12:07 PM, Paolo Carlini wrote:
     case COMPONENT_REF:
+      if (is_overloaded_fn (TREE_OPERAND (t, 1)))
+    return t;

Hmm, I'd be inclined to strip the COMPONENT_REF in this case to
produce something that's actually usable as a constant.  Does that work?
I see. Thus I tested successfully the below (which, for the testcase,
forwards a BASELINK) or you mean something more complex?

A BASELINK isn't useful as a constant, either; I was thinking of the FUNCTION_DECL itself. Perhaps

gcc_checking_assert (!really_overloaded_fn
return get_first_fn

Jason


Reply via email to