I’m sure GCC is trying to be helpful in reporting only the first occurrence of the “same” error - but I find it unhelpful.
eg, if I make a typo in a symbol name, and that mistake has been repeated, most compilers will report an error on each occurrence - this makes it easy to go through all the errors, fix them, and then know that all those typos have been fixed.
But GCC just tells you about the first typo; so you fix that and think, “right, that’s all the errors fixed!” - but then you rebuild, and find the next one.
No doubt GCC thinks it is trying to be helpful by not swamping you with loads of “duplicate” errors - but, as illustrated above, it is not helpful at all.
Is there a way to get GCC to report each and every occurrence?