http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24985
--- Comment #19 from Jason Merrill <jason at gcc dot gnu.org> 2012-04-04 18:47:58 UTC --- Created attachment 27092 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27092 Patch to add -fno-diagnostics-show-caret for testing This seems like what you want for the last bit.