Squid 3.1.9 is out. http://www.squid-cache.org/Versions/v3/3.1/changesets/SQUID_3_1_9.html
The existing 3.1.8 ebuild works fine after cloning the three patches for 3.1.8; no changes necessary (for me).
Fixed in cvs.