<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12px"><div id="yui_3_16_0_1_1430650706555_18584"><br></div><div>    Hi all,</div><div id="yui_3_16_0_1_1430650706555_18647"><br></div><div dir="ltr" id="yui_3_16_0_1_1430650706555_18608">    I have the following header:<br style="" class=""><br style="" class=""><br style="" class="">    class Class1<br style="" class="">    {<br style="" class="">    };<br style="" class=""><br style="" class="">    class Class2<br style="" class="">    {<br style="" class="">    public:<br style="" class="">        friend inline const Class1 operator+(const Class1& f1, const Class1& f2);<br style="" class="">    };<br style="" class=""><br style="" class="">    inline const Class1 operator+(const Class1& f1, const Class1& f2)<br style="" class="">    {<br style="" class="">        return Class1();<br style="" class="">    }<br style="" class=""><br style="" class=""><br style="" class="">    Decl::getLocation() returns line 8 for the friend - that's correct. But it returns 8 for the friend declaration, that is, the function itself, too, while the function is actually located at line 11. If the friend is deleted, then the correct location is reported.</div><div id="yui_3_16_0_1_1430650706555_18633" dir="ltr"><br></div><div id="yui_3_16_0_1_1430650706555_18648" dir="ltr">    I think it's a bug so I filed it at <a id="yui_3_16_0_1_1430650706555_18650" href="https://llvm.org/bugs/show_bug.cgi?id=23401">https://llvm.org/bugs/show_bug.cgi?id=23401</a> . But I may me wrong so I'd appreciate your opinion.</div><div id="yui_3_16_0_1_1430650706555_18666" dir="ltr"><br></div><div id="yui_3_16_0_1_1430650706555_18670" dir="ltr"><br></div><div id="yui_3_16_0_1_1430650706555_18668" dir="ltr">    Dimitar Dobrev</div><div id="yui_3_16_0_1_1430650706555_18684" dir="ltr"><br></div><div id="yui_3_16_0_1_1430650706555_18649" style="" class=""> </div></div></body></html>