3 ms·
> clang also has far better error messages than gcc. This was true a number of years ago, but I believe GCC's diagnostics have gotten much better in response t
by loeg 8y ago
> clang also has far better error messages than gcc.
This was true a number of years ago, but I believe GCC's diagnostics have gotten much better in response to competition and don't believe it to be true anymore (although my experience is with C code, not C++ — maybe Clang is better there).
Another distinction is that GCC continues to hold a significant lead in producing accurate debuginfo, which is invaluable to me as a developer.
- lorenzhs 8y agoI think both compilers give good error messages (C++14 and C++17). Sometimes one is clearer, sometimes the other, so what I usually do if I can't immediately figure out what the compiler is complaining about is to try the other one and see if that clears things up or at least narrows it down a bit. Works surprisingly often :)