[Bug libstdc++/61658] Invalid std::string(size_type, value_type) constructor implementation

d.v.a at ngs dot ru gcc-bugzilla@gcc.gnu.org
Mon Jun 30 12:54:00 GMT 2014


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> ?



More information about the Gcc-bugs mailing list