The post hinges on the faulty assumption that calculating the address of an lvalue "evaluates" that lvalue.
The post hinges on the faulty assumption that calculating the address of an lvalue "evaluates" that lvalue. This is not so. Any compiler that generates anything other than an add instruction (or lea or similar) is broken, for rather unsubtle reasons. Or to put it another way: dereferencing a null pointer may be undefined, but arithmetic on any pointer (including null) is well defined, and the code in question is arithmetic, not dereference. And, yet another broken blog post will make the rounds on the internet every three years and confuse even more people. It's sad.
Posted by jwatte on Apr 21, 2015, 2:51 AM
Tags
Related issues
- I can't recall who said it, but "The biggest problem with golden ages is that you never realize you're in one until it's over".
- [BUG] No response from API error when Advisor is triggered
- I thought the general premise is that humans can't form social groups bigger than around ~200.
- great, now can we convince the rest of the internet to start adding AAAA records and ipv6 endpoints for things.
- > It's only with the emergence of whiny, persnickety Unix devs who refused to leave the comforting embrace of their editor of choice that...
- Contrary to some other comments: no, IPV6 hasn't taken over the world at all.
Raise real-world problems, find people facing the same issue, and discuss solutions.7,000 issues0 comments
reliability (Network)
I can't recall who said it, but "The biggest problem with golden ages is that you never realize you're in one until it's over".
[BUG] No response from API error when Advisor is triggered
I thought the general premise is that humans can't form social groups bigger than around ~200.
great, now can we convince the rest of the internet to start adding AAAA records and ipv6 endpoints for things.
> It's only with the emergence of whiny, persnickety Unix devs who refused to leave the comforting embrace of their editor of choice that...
Contrary to some other comments: no, IPV6 hasn't taken over the world at all.
Copy and paste not working
Full Offline Support
The post hinges on the faulty assumption that calculating the address of an lvalue "evaluates" that lvalue.
The post hinges on the faulty assumption that calculating the address of an lvalue "evaluates" that lvalue. This is not so. Any compiler that generates anything other than an add instruction (or lea or similar) is broken, for rather unsubtle reasons. Or to put it another way: dereferencing a null pointer may be undefined, but arithmetic on any pointer (including null) is well defined, and the code in question is arithmetic, not dereference. And, yet another broken blog post will make the rounds on the internet every three years and confuse even more people. It's sad.
Comments (0)
No comments yet. Start the discussion.