<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div><div class="h5"><div class="gmail_extra"><div class="gmail_quote">2017-01-26 15:01 GMT+04:00 Aleksey Midenkov <span dir="ltr"><<a href="mailto:midenok@gmail.com" target="_blank">midenok@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">F.ex. jump to:<br>
<br>
/home/midenok/src/mariadb/mide<wbr>nok/src/sql/partitioning/parti<wbr>tion_handler.h:60:0:<br>
warning: "HA_FAST_CHANGE_PARTITION" redefined<br>
<br>
doesn't work. It opens file, but doesn't jump to line 60.<br>
<br>
Thoug it works very well for lines like this:<br>
<br>
/home/midenok/src/mariadb/mide<wbr>nok/src/sql/partitioning/parti<wbr>tion_handler.h:34:41:<br>
error: conflicting declaration 'typedef struct<br>
st_ha_create_information HA_CREATE_INFO'<br>
<br>
Are you aware of this bug?<br>
</blockquote></div><br></div></div></div><div class="gmail_extra">Actually I think the bug is in g++.<br><br></div><div class="gmail_extra">Consider this code (Where all lines start at the leftmost column i.e. column ONE):<br><br>int main(int argc, char **argv) {<br>#define MVOTEST hello<br>#define MVOTEST hi<br>fffffff    <br>    return 0;<br>}<br><br></div><div class="gmail_extra">That gives the following output on gcc:<br><br></div><div class="gmail_extra">mvo@mvo-devel:~/projects/<wbr>testColumnNumber$ g++ main.cpp <br>main.cpp:3:0: warning: "MVOTEST" redefined<br> #define MVOTEST hi<br> <br>main.cpp:2:0: note: this is the location of the previous definition<br> #define MVOTEST hello<br> <br>main.cpp: In function ‘int main(int, char**)’:<br>main.cpp:4:1: error: ‘fffffff’ was not declared in this scope<br> fffffff<br> ^~~~~~~<br><br></div><div class="gmail_extra">Note that g++ disagrees with itself about the number of the first column.<br><br></div><div class="gmail_extra">Compiling the same code on clang gives:<br></div><div class="gmail_extra"><br>mvo@mvo-devel:~/projects/<wbr>testColumnNumber$ clang main.cpp <br>main.cpp:3:9: warning: 'MVOTEST' macro redefined [-Wmacro-redefined]<br>#define MVOTEST hi<br>        ^<br>main.cpp:2:9: note: previous definition is here<br>#define MVOTEST hello<br>        ^<br>main.cpp:4:1: error: use of undeclared identifier 'fffffff'<br>fffffff    <br>^<br><br></div><div class="gmail_extra">Note that clang does not disagree with itself about the number of the first column, and also (IMHO) points a little more accurate to where the problem actually is. <br><br></div><div class="gmail_extra">That being said, I agree with Milian that it should be fairly easy to work around this and give the user a better experience. <br clear="all"></div><span class=""><div class="gmail_extra"><br>-- <br><div class="m_-6434490589571925728gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Regards / Med venlig hilsen<br><br></div><div>Morten Danielsen Volden<br></div><div>Software Developer<br></div><div>M.Sc. EE<br></div></div></div></div></div>
</div></span></div>
</div><br></div>