OrangeC icon indicating copy to clipboard operation
OrangeC copied to clipboard

Better error messages for templates

Open chuggafan opened this issue 3 months ago • 1 comments

#1066 reminded me that we have no way to say "We have checked X candidate, Y reason is why this candidate failed" in template instantiations. https://godbolt.org/z/Wa5sPPd5T

Something like that would be extremely helpful in determining for any end user (and us debugging the compiler) what issues the compiler is having during an expansion of a template, the age-old meme of template errors turning into multi-page barf that cannot be understood are true and we should work to avoid continuing it.

This is low on my priority list as I have an existing "Why is omake behaving like this" headache that I shall need to sort out.

chuggafan avatar Oct 11 '25 22:10 chuggafan

yes please if you could do this at some point it would be great. Something similar for function overloads might be nice too... this seems like a huge project though lol....

LADSoft avatar Oct 12 '25 13:10 LADSoft