6 ms·
> When reporting on mismatching template types, the C++ compiler will now use color to highlight the mismatching parts of the template, and will elide the param
by thestoicattack 8y ago
> When reporting on mismatching template types, the C++ compiler will now use color to highlight the mismatching parts of the template, and will elide the parameters that are common between two mismatching templates, printing [...] instead
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.
- karrotwaltz 8y agoThe 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.
- jcelerier 8y ago> 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
- karrotwaltz 8y agoI'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
- Uberphallus 8y agoI'll be happy if the mismatching template types are simply aligned in two lines so it's easy to spot the differences.