Reading through error messages generated by g++ is often a pain because gcc expand names like
std::ostream
in my code into a much longer form
There is no compiler flag to reduce or change the error messages and the related types/templates.
-fdiagnostics-color={auto, always, never}
. See the documentation here.A number of third party tools exist to help you decrypt error messages:
Also as a (very good) alternative, the clang compiler is very, very good at diagnosis and error messages.