projects
/
gcc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
re PR libstdc++/48760 (std::complex constructor buggy in the face of NaN's)
[gcc.git]
/
libstdc++-v3
/
include
/
parallel
/
partial_sum.h
diff --git
a/libstdc++-v3/include/parallel/partial_sum.h
b/libstdc++-v3/include/parallel/partial_sum.h
index 425e868fe6bb699f2e41be80f8b24543f11b3312..1a7697a6cefc83622c19157f63a9c1dbbb40f822 100644
(file)
--- a/
libstdc++-v3/include/parallel/partial_sum.h
+++ b/
libstdc++-v3/include/parallel/partial_sum.h
@@
-184,7
+184,10
@@
namespace __gnu_parallel
__bin_op, __sums[__iam]);
} //parallel
+ for (_ThreadIndex __i = 0; __i < __num_threads; ++__i)
+ __sums[__i].~_ValueType();
::operator delete(__sums);
+
delete[] __borders;
return __result + __n;