Thread overview
[Issue 17657] wrong line number when optimized (dmd -O -g)
Jul 16, 2017
Stefan
Jul 17, 2017
Vladimir Panteleev
Dec 17, 2022
Iain Buclaw
May 11, 2023
RazvanN
July 16, 2017
https://issues.dlang.org/show_bug.cgi?id=17657

Stefan <kdevel@vogtner.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|Other                       |x86_64
                 OS|Other                       |Linux
           Severity|enhancement                 |normal

--
July 17, 2017
https://issues.dlang.org/show_bug.cgi?id=17657

--- Comment #1 from Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> ---
Err, I think using optimizations implies that you are willing to sacrifice accurate debug information. This is true for pretty much all compilers, so unless this is something easily fixable, I'm not sure if this is a valid bug report.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=17657

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
May 11, 2023
https://issues.dlang.org/show_bug.cgi?id=17657

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305@gmail.com
         Resolution|---                         |WORKSFORME

--- Comment #2 from RazvanN <razvan.nitu1305@gmail.com> ---
I cannot reproduce this. I am still getting the correct line number when compiling with -g -O using the latest compiler version.

--