This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question about overloaded operators


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 look around but I didn't find any obvious way to figure this info out.

Not a simple one. You might factor out the code for that in write_unqualified_id into a separate function.

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]