[Bug debug/96997] New: step over in gdb always stops in basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
alexis.jeandet at member dot fsf.org
gcc-bugzilla@gcc.gnu.org
Wed Sep 9 12:29:15 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96997
Bug ID: 96997
Summary: step over in gdb always stops in basic_string(const
_CharT* __s, const _Alloc& __a = _Alloc())
Product: gcc
Version: 10.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
Assignee: unassigned at gcc dot gnu.org
Reporter: alexis.jeandet at member dot fsf.org
Target Milestone: ---
Minimum code to reproduce the issue:
#include <iostream>
#include <string>
int main()
{
std::cout << std::string{"str1"};
std::cout << std::string{"str2"};
return 0;
}
Stepping over will stop in basic_string ctor which is unexpected. This is
reproductible with G++ 10.2.1 and 10.2.0 (Fedora 32, 32 and Arch).
On the same machine building with clang and debugging with gdb doesn't have
this issue.
g++9 and 8 works as expected.
More information about the Gcc-bugs
mailing list