A band-aid rather than a solution, but sticking this in .emacs/init.el will fix up emacs to do the right thing with asserts (only tested with DMD). Cheers, A. (add-to-list 'compilation-error-regexp-alist '("^object\.Exception@\\(.*\\)(\\([0-9]+\\)).*" 1 2 ) )