News for hackers. Stuff that matters.
Re:Null Pointer Dereferencing Causes Undefined Behavior by Animats on Monday April 20, 2015 @05:56PM (#9411105)
Of course it's undefined behavior. It's also a famous issue with GCC optimization.

This is another reason I look forward to the day when C is a legacy language.

Re:Null Pointer Dereferencing Causes Undefined Behavior by spoiler on Tuesday April 21, 2015 @06:24AM (#9413114)
As it stands now, C might outlive most, if not everyone in this thread. :-)

Although, I don't mind C. I work in it every day and I've comfortable with it. A colleague of mine (who works primarily in Python) teased me it's because I have developed a Stockholm syndrome.

Re:Null Pointer Dereferencing Causes Undefined Behavior by pjmlp on Tuesday April 21, 2015 @07:17AM (#9413280)
At least Microsoft is helping achieving that.

However it doesn't help that C++ allows for a C subset.

We are several decades away from achieving that goal.