News for hackers. Stuff that matters.
Re:GCC null pointer check removed by musicale on Wednesday August 28, 2019 @06:32PM (#20824742)
g++ drove me insane with its baroque error messages, but clang++ did not. However, I hear that g++ has improved.
Re:GCC null pointer check removed by LukeShu on Wednesday August 28, 2019 @08:11PM (#20825420)
I avoid C++ and stay in straight C as much as I can. GCC's C error messages have definitely improved in response to clang (especially around deep preprocessor stuff). I had assumed that the C++ messages had likewise improved, and thought that I had heard that as well.

Then I actually had to test that working on Envoy proxy. I was disappointed to get utterly incomprehensible error messages. I'm "GCC-by-default", so a coworker suggested I try switching to clang++... and sure enough, clang++ gave me decent error messages.

Re:GCC null pointer check removed by srean on Thursday August 29, 2019 @11:09AM (#20830161)
Yes and yes. I have seen g++ error messages especially template related ones from being horrendously inscrutable to at par with, and now better than clang. Of course this my subjective judgement. One area where i have found g++ to shine over clang is explaining the vectorization choices it makes -- great for understanding why a loop did not get simd'ed.

Competition has definitely served us well