There is a parsing bug in 4.8.1. I came upon it when trying to compile calligra-2.7.4 with sys-devel/gcc-4.8.1-r1. I found an identical bug report here: http://comments.gmane.org/gmane.comp.kde.devel.bugs/1446521 which concludes that the problem is with a compiler regression rather than calligra code. gcc bug is here: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57532 and patch to fix the problem is here: http://gcc.gnu.org/viewcvs/gcc/branches/gcc-4_8-branch/gcc/cp/parser.c?view=patch&r1=200836&r2=200835&pathrev=200836 After applying the patch to gcc, calligra builds without issue. Please append this patch to the currect gcc patchset. Reproducible: Always
Fixed in 4.8.2.