CPP needs to be passed the "-P" option when parsing two files.
Steps to Reproduce:
1.Try to build zsh with gcc 5.1
3.Try to run zsh
4.It sometimes segfaults, sometimes works with wonky completion errors.
Created attachment 402132 [details, diff]
Fixes ZSH problems with GCC 5.
Here's a patch that fixes the bug.
Is the issue still there with zsh-5.1.1?
I seem to recall that upstream had added code to some awk files to hande line number markers correctly.
this is partially fixed in zsh-5.1:
i've sent an e-mail about the other file:
and pushed the fix in the 5.1.1 ebuild: