CPP needs to be passed the "-P" option when parsing two files. Reproducible: Always Steps to Reproduce: 1.Try to build zsh with gcc 5.1 2.It builds 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: http://www.zsh.org/mla/workers/2015/msg00211.html http://sourceforge.net/p/zsh/code/ci/c7aa6443907ddd97b6b1e8729ce9c897de0d244c/ http://sourceforge.net/p/zsh/code/ci/9f9a16f43c5c66d3a764ef2abaacca6a3d91f89c/ i've sent an e-mail about the other file: http://www.zsh.org/mla/workers/2015/msg02660.html and pushed the fix in the 5.1.1 ebuild: http://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e4cb2a89d44c72079ff01aff862806f4969ce1b