On 11/10/2013 07:58 PM, Iyer, Balaji V wrote:
Semi crazy thought...If I do something like a string compare for the operation after
operator toward the end of the function, will I get what I want? I guess another way to
ask this is, will a '+' operation, for example, be mapped to a function endi
> -Original Message-
> From: Jason Merrill [mailto:ja...@redhat.com]
> Sent: Sunday, November 10, 2013 1:55 PM
> To: Iyer, Balaji V; gcc@gcc.gnu.org
> Subject: Re: Question about overloaded operators
>
> On 11/10/2013 11:08 AM, Iyer, Balaji V wrote:
> >
On 11/10/2013 11:08 AM, Iyer, Balaji V wrote:
In C++, when a binary/unary operator is overloaded, then the
build_x_[binary/unary]_op replaces it with a call expression. Is there a way
to know from the call expression (assume we are in the gimplification stage)
what the operator is? I tried to