After trying, I\'m wondering why GCC is able to do DCE on unused malloc or new buffer but not on unused vector?
malloc
new
vector