This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/61658] 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:54:05 +0000
- Subject: [Bug libstdc++/61658] Invalid std::string(size_type, value_type) constructor implementation
- Auto-submitted: auto-generated
- References: <bug-61658-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61658
--- Comment #1 from __vic <d.v.a at ngs dot ru> ---
If replace with:
std::string st(1U, '0');
then prints as expected:
1
0
Why {1U, '0'} is treated as std::initializer_list<char> ?