https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70107
--- Comment #4 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- You need to add "-std=c++11 -fpermissive" to gcc < 6. Trunk seems to be fixed, but gcc-5 and gcc-4.9 still ICE.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70107
--- Comment #4 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- You need to add "-std=c++11 -fpermissive" to gcc < 6. Trunk seems to be fixed, but gcc-5 and gcc-4.9 still ICE.