Details
Diff Detail
Event Timeline
I've posted this one separately from D23512 because something very strange is going on in this test. Adding two blank lines causes the line number reported in the backtrace to change by 30. [[@LINE-3]] looks like the correct line to me since line 32 triggers the use of the uninitialised value but I can't explain why [[@LINE-30]] works when the two blank lines are removed. I've compared the output ELF both with and without the blank lines and I can't find any differences other than the line numbers being different by two in .debug_info and .debug_line which is to be expected.
That's because the check is on line 33, which [-30] equals to 3, which also happens to be first character of the string "30".
Does [[@LINE-3]] work if you remove the extra empty lines?
Thanks. That also explains why adding two lines caused the test to fail since 35-30 is 5 which does not match.
Does [[@LINE-3]] work if you remove the extra empty lines?
Yes, [[@LINE-3]] works both with and without the extra lines.