News for hackers. Stuff that matters.
Re:The Dangers of Super Smart Compilers by saurik on Sunday December 20, 2015 @09:28PM (#10769247)
In C++, dereferencing a pointer doesn't give you a value: it gives you a "reference". While a compiler is possibly allowed to do so, I would be shocked to the point of saying "this compiler doesn't work" at a compiler that actually went out of its way, even with optimizations turned off (as this isn't an optimization issue), to access the memory at the address of the pointer in any way if the reference was never actually used.

There are no comments on this comment yet.