aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2022-05-06 21:19:17 +0100
committerJonathan Wakely <jwakely@redhat.com>2022-05-06 23:54:09 +0100
commit909ef4e2727ddc50a32d6ad379a1f1ccc1043c6a (patch)
treeae8f9895fb41f53318f9ade3b867252f0db242a6 /gcc
parent69dd5ca3484ee514c1323dfbcf4ef4358cea57bb (diff)
downloadgcc-909ef4e2727ddc50a32d6ad379a1f1ccc1043c6a.zip
gcc-909ef4e2727ddc50a32d6ad379a1f1ccc1043c6a.tar.gz
gcc-909ef4e2727ddc50a32d6ad379a1f1ccc1043c6a.tar.bz2
libstdc++: Fix deserialization for std::normal_distribution [PR105502]
This fixes a regression in std::normal_distribution deserialization that caused the object to be left unchanged if the __state_avail value read from the stream was false. libstdc++-v3/ChangeLog: PR libstdc++/105502 * include/bits/random.tcc (operator>>(basic_istream<C,T>&, normal_distribution<R>&)): Update state when __state_avail is false. * testsuite/26_numerics/random/normal_distribution/operators/serialize.cc: Check that deserialized object equals serialized one.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions