https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87671
--- Comment #7 from Anton Barkovsky ---
(In reply to Jonathan Wakely from comment #6)
> That does seem to explain the difference. With GCC 8 GDB thinks that 'ptr'
> is passed in the register %rsi so the value in the register is the value of
> the
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87671
--- Comment #2 from Anton Barkovsky ---
No, without sanitizers also, although I'm getting a different value (1433833072
in my latest run) in the debugger instead of 16.
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: anton at swarmer dot me
Target Milestone: ---
Created attachment 44866
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44866&action=edit
Source code to reproduce