[Bug c++/87671] Incorrect debugging information for unique_ptr passed to a constructor

2018-10-22 Thread anton at swarmer dot me
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

[Bug c++/87671] Incorrect debugging information for unique_ptr passed to a constructor

2018-10-22 Thread anton at swarmer dot me
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.

[Bug c++/87671] New: Incorrect debugging information for unique_ptr passed to a constructor

2018-10-20 Thread anton at swarmer dot me
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