you're getting this template-based bug because the package in the subject hit a "header present but cannot be compiled" during ./configure execution. If you check my blog post in the URL, this is going to be a problem when autoconf-2.64 will be used so you should pay attention and consider fixing the issue (or let upstream know about it at least).
Thank you for your consideration. Share and enjoy!
app-office/ical-2.3.3:20090118-161654.log:configure: WARNING: sys/utsname.h: present but cannot be compiled
app-office/ical-2.3.3:20090118-161654.log:configure: WARNING: limits.h: present but cannot be compiled
15 Jan 2010; Samuli Suominen <email@example.com> ical-3.0.ebuild:
Don't check for limits.h and sys/utsname.h in ./configure (unused) wrt
*ical-3.0 (15 Jan 2010)
15 Jan 2010; Samuli Suominen <firstname.lastname@example.org> +ical-3.0.ebuild,
Version bump wrt #257285, thanks to Sergei Golubchik for reporting.