Re:GCC 8.2 Released
by karrotwaltz on Thursday July 26, 2018 @10:24AM
(#17617742)
The most verbose type of template errors I can think of are instantiation errors with multiple candidates and type deduction failures.
In these cases there won't be any elision so it won't help much.
I still hope one day we'll see GCC & clang implement some kind of parsable diagnostic output (e.g JSON). Simply folding all the candidates on a UI would be a massive step forward in reading template errors.
Re:GCC 8.2 Released
by Uberphallus on Thursday July 26, 2018 @11:42AM
(#17618339)
I'll be happy if the mismatching template types are simply aligned in two lines so it's easy to spot the differences.
> Simply folding all the candidates on a UI would be a massive step forward in reading template errors.
well... that's already what happens if you use an IDE ? That's at least the case on Qt Creator
Re:GCC 8.2 Released
by karrotwaltz on Thursday July 26, 2018 @11:19AM
(#17618130)
I've heard a lot of good about QtCreator lately, from multiple people, I'll give it a try soon.
Still, some parsable output would be great for many cases, a CI with diagnostic on a web page for example
I'll be interested to see if [...] can make instantiation error messages a lot smaller. I hope so.
Also:
> AddressSanitizer integration for std::vector, detecting out-of-range accesses to the unused capacity of a vector.