<html><body><div>Hello,</div><div><br></div><div>Attached is a patch to store the location of the brackets for calls to array subscription expressions when the caller is a C++ operator:</div><div><br></div><div>struct Foo {</div><div> int operator[](int);</div><div> static void mooze() {</div><div> Foo bar;</div><div> bar[1]; // <--- this call</div><div> bar[](1); // <--- not this call</div><div> }</div><div>};</div><div><br></div><div>I tried to make the least intrusive patch as possible, but I am not sure if there are more cases where the DeclRefExpr should store a DeclarationNameLoc then only the overloaded array subscription.</div><div><br></div><div>Cheers,</div><div>Erik.</div></body></html>