illusori/emacs-flymake — pull request #6 by abbec (2012-05-23 12:48:43+00:00)
Title: Update the regexp for newer GCC to use the correct file-idx.

Hi!

I discovered a bug in the flymake-err-line-patterns. The file-idx should use the first matching group (1) and not the second since this group will only (in some cases) contain a drive letter.

For example:
the string "c:/test.cpp:6:4: error: expected ';' before 'return'"
will have the matching groups

1.	c:/test.cpp
2.	c:
3.	6
4.	4
5.	error: expected ';' before 'return'

so it can be seen that the file-idx should be 1 and not 2.

Cheers and thanks for a nice fork!

// Albert