[Bug debug/107154] [12 Regression] GDB jumping to end of block when stepping over construction of local variable

2023-04-18 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107154

Jason Merrill  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|ASSIGNED|RESOLVED

--- Comment #6 from Jason Merrill  ---
Fixed for 12.3/13.

[Bug debug/107154] [12 Regression] GDB jumping to end of block when stepping over construction of local variable

2023-04-18 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107154

--- Comment #5 from CVS Commits  ---
The releases/gcc-12 branch has been updated by Jason Merrill
:

https://gcc.gnu.org/g:2088358b658c44f69d37af0d7deec321f557741d

commit r12-9430-g2088358b658c44f69d37af0d7deec321f557741d
Author: Jason Merrill 
Date:   Tue Oct 4 17:06:04 2022 -0400

c++: fix debug info for array temporary [PR107154]

In the testcase the elaboration of the array init that happens at
genericize
time was getting the location info for the end of the function; fixed by
doing the expansion at the location of the original expression.

PR c++/107154

gcc/cp/ChangeLog:

* cp-gimplify.cc (cp_genericize_init_expr): Use iloc_sentinel.
(cp_genericize_target_expr): Likewise.

gcc/testsuite/ChangeLog:

* g++.dg/debug/dwarf2/lineno-array1.C: New test.

[Bug debug/107154] [12 Regression] GDB jumping to end of block when stepping over construction of local variable

2022-10-06 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107154

Richard Biener  changed:

   What|Removed |Added

Summary|[12/13 Regression] GDB  |[12 Regression] GDB jumping
   |jumping to end of block |to end of block when
   |when stepping over  |stepping over construction
   |construction of local   |of local variable
   |variable|
   Target Milestone|--- |12.3
   Priority|P3  |P2
  Known to work||13.0
  Known to fail|13.0|