http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24985
--- Comment #20 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2012-04-04 18:52:32 UTC --- (In reply to comment #19) > Created attachment 27092 [details] > Patch to add -fno-diagnostics-show-caret for testing > > This seems like what you want for the last bit. Great, this works for C++, however, the caret is enabled for diagnostic that uses the diagnostics machinery, independently of the language (for example, warnings from the middle-end). If there is no general way, I guess I can do this for every language.