This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/61658] New: Invalid std::string(size_type, value_type) constructor implementation
- From: "d.v.a at ngs dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 30 Jun 2014 12:47:34 +0000
- Subject: [Bug libstdc++/61658] New: Invalid std::string(size_type, value_type) constructor implementation
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61658
Bug ID: 61658
Summary: Invalid std::string(size_type, value_type) constructor
implementation
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: d.v.a at ngs dot ru
#include<string>
#include<iostream>
int main()
{
std::string st{1U, '0'};
std::cout << st.length() << '\n';
std::cout << st << '\n';
}
Prints:
2
â0
Must be:
1
0