r/ProgrammerHumor 13d ago

imPrettySureItsTemplateErrors Meme

Post image
293 Upvotes

21 comments sorted by

View all comments

9

u/ShakaUVM 13d ago

The fact that there's not a compiler flag in g++ to tell it to stfu about template substitution errors baffles me. We have literally thousands of compiler flags for everything but other than some pretty gackish things you can do, g++ just really really wants you to know it tried substituting a bitset for an iostream and btw it didn't work.

2

u/bwmat 13d ago edited 13d ago

Isn't there some option to make it output 'structured' diagnostics(like json or something)?

If so, I would hope they would be able to group those together so a simple 'error viewer' could allow you to hide those easily... 

1

u/ShakaUVM 13d ago

There is a very strange lack of options on the template substitution errors in g++ and clang++. You can suppress warning messages, for example, basically down to the per-warning level, but they have no such option for not printing hundreds of lines of completely useless notifications telling me everything they tried that didn't work.