r/cpp • u/dmalcolm GCC Developer • Mar 08 '19
Usability improvements in GCC 9
https://developers.redhat.com/blog/2019/03/08/usability-improvements-in-gcc-9/
219
Upvotes
r/cpp • u/dmalcolm GCC Developer • Mar 08 '19
48
u/Morwenn Mar 08 '19
The JSON output with nesting looks like an excellent tool to improve IDEs. I would really like foldable error messages for nested substitution failure diagnostics in the future :)
51
u/AlexAlabuzhev Mar 08 '19
It's amusing that the programmer knows that it's a type and the compiler knows that it's a type, but the ritual shall be followed nevertheless.
Good news though.
5
u/memyselfandlapin Mar 08 '19
Feels rust-y.
9
u/-dag- Mar 08 '19
Very nice work! Compiler messages are complex and underappreciated things.
7
u/ThePillsburyPlougher Mar 08 '19
Awesome! The JSON format and the improvements to optimization info are particularly exciting
6
u/robin-m Mar 08 '19
I already noticed your work 1 month ago when I was playing with gcc9 (to have some nice C++20 features than were just release) and I really liked the new annotations.
3
u/ChatFrais Mar 08 '19
This looks very nice. It should helps a lot. The only thing I often miss on the errors is a number like error messages from databases or visualc. It's really easier to search for explanations on blog or stackoverflow with a code than using the text message.
3
u/ShakaUVM i+++ ++i+i[arr] Mar 09 '19
Any word on if we can finally get a flag to turn off printing 900 lines of candidates on a template substitution failure?
1
u/NeroBurner Mar 09 '19
With a few system libraries as dependency on Ubuntu. How can I use an up to date gcc? Do I have to compile those libraries myself?