On 11/08/2011 09:54 PM, Ed Smith-Rowland wrote:
+      if (TREE_CODE (TREE_TYPE (fn)) != LANG_TYPE)

You don't need to check this, since OVL_CURRENT always gives a function.

It seems like a lot of the complexity of lookup_literal_operator is for dealing with string literals, which is the case where we don't need to look at the parameter types anyway; we can just build a call. 2.14.8/5 doesn't say anything about the overload set.

It also looks like lookup_literal_operator called with no arguments (i.e. for the template case of numeric literals) will just return the first function in the overload set, which may not be right.

Jason

Reply via email to