As of the latest update, the bash-completion ebuild installs /etc/profile.d/bash-completion.sh. This script is then run by shells other than bash (e.g. zsh) on startup, leading to a slew of errors. Attached is a patch which (1) checks if the shell actually bash before running any of the script (2) corrects the syntax problems that cause errors in zsh. Obviously (1) renders (2) redundant, but it's good style anyway.
Created attachment 175173 [details, diff] Patch to fix issues with non-bash shells.
Sorry, turns out that I simply missed a config update. What happened was that the ebuild renamed /etc/profile.d/bash-completion (which isn't run by the default zprofile) to /etc/profile.d/bash-completion.sh (which is), and then posted a config update. The updated script does not have such problems.
Okay, closing the bug then. Nick, thanks for reporting anyway ;-)