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



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to