diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-01-27 23:30:28 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-01-27 23:30:28 +0000 |
commit | d39cfbd47588cbfdbf1bb4797029d50afdd642f4 (patch) | |
tree | 6f3890c64ec695d5be8bc9ee98fc7364d0008092 /libstdc++-v3/ChangeLog | |
parent | 58b7b49abf0e86127043191ac693fd24233ce1ef (diff) | |
download | gcc-d39cfbd47588cbfdbf1bb4797029d50afdd642f4.tar.gz |
2012-01-27 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/51795
* include/bits/random.h (linear_congruential_generator): Add
static_assert preventing instantiation for values of 'a' and 'm'
currently handled incorrectly but _Mod::__calc.
* include/bits/random.tcc (seed_seq::generate): Avoid unsafe
uses of _Mod::__calc.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183655 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/ChangeLog')
-rw-r--r-- | libstdc++-v3/ChangeLog | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 2dbb665a345..82dbf42f96a 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,12 @@ +2012-01-27 Paolo Carlini <paolo.carlini@oracle.com> + + PR libstdc++/51795 + * include/bits/random.h (linear_congruential_generator): Add + static_assert preventing instantiation for values of 'a' and 'm' + currently handled incorrectly but _Mod::__calc. + * include/bits/random.tcc (seed_seq::generate): Avoid unsafe + uses of _Mod::__calc. + 2012-01-27 Jakub Jelinek <jakub@redhat.com> PR libstdc++/51798 |