blob: cecb17e41cc6814c0e523d7fe6fd58d6f78da6d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// { dg-do run { target c++17 } }
#include <charconv>
#include <string>
int main()
{
// PR libstdc++/105324
// std::from_chars() assertion at floating_from_chars.cc:78
std::string s(512, '1');
s[1] = '.';
long double d;
std::from_chars(s.data(), s.data() + s.size(), d);
}
|