[PATCH] D27555: [libcxx] [test] Fix MSVC warning C6001 "Using uninitialized memory".

Stephan T. Lavavej via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 8 12:07:03 PST 2016


STL_MSFT added a comment.

It was debatable to me whether this was actually a compiler bug, but I suppose that it can see size()'s definition and should be able to notice that the elements aren't accessed. I've filed VSO#300037 "Bogus warning C6001 "Using uninitialized memory" for array::size()".

I'd still like to have this workaround upstreamed; I've made a note to myself to revert it when the compiler bug is fixed. (We're locking down for VS 2017 RTM, so that may not happen quickly, but fortunately only this one simple test is affected.)


https://reviews.llvm.org/D27555





More information about the cfe-commits mailing list