News for hackers. Stuff that matters.
Re:Clang: Defending C++ from Murphy's Million Monkeys by rrreese on Thursday February 23, 2012 @06:45AM (#3624582)
Does anyone have a clue as to why GCC's messages have remained so bad for so long?
Re:Clang: Defending C++ from Murphy's Million Monkeys by obiterdictum on Thursday February 23, 2012 @08:40AM (#3624853)
Because it's hard to add it to the mature infrastructure that was not designed to support it from the beginning. Clang was built from ground up to support good diagnostics.
Re:Clang: Defending C++ from Murphy's Million Monkeys by alec on Thursday February 23, 2012 @07:33AM (#3624699)
gcc's error messages, especially for C++ templates, got much better in 4.5. They don't have pretty colors, but I didn't find a substantial benefit from clang 2.9's vs gcc 4.5's for C++ development when using both for a week.

Note that if you're on a Mac, your system's gcc is likely several years out of date.

Re:Clang: Defending C++ from Murphy's Million Monkeys by Hemospectrum on Thursday February 23, 2012 @03:03PM (#3626473)
> Note that if you're on a Mac, your system's gcc is likely several years out of date.

To be precise: Apple stopped maintaining its GCC branch after the switch to GPL3. The last version available with Apple patches is 4.2.1. There will be no further updates to this branch.

Re:Clang: Defending C++ from Murphy's Million Monkeys by X-Istence on Thursday February 23, 2012 @12:10PM (#3625708)
Even with 4.5 I haven't found the error messages to be nearly as helpful. Also with clang you can easily turn on a way to look for undefined behavior and turn those into warnings/errors which is fantastic and helped me track down a bug BEFORE it caused me huge grief.
Re:Clang: Defending C++ from Murphy's Million Monkeys by greyfade on Thursday February 23, 2012 @03:19PM (#3626549)
Check out [Colorgcc](http://schlueters.de/colorgcc.html). It helps more than you'd think.