Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think this might not be a shortcoming of MSVC but rather a deliberate design decision. It seems likely that MSVC is failing to apply strict aliasing, but that it's deliberately avoiding it, probably for compatibility reasons with code that wasn't/isn't written to spec. And frankly it can be very onerous to write code that is 100% correct per the standard when dealing with e.g. memory-mapped files; I'm struggling to recall seeing a single case of this.




AFIK MSVC has never implemented TBAA by design.

TBAA = type-based alias analysis



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: