http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60305
Daniel Krügler <daniel.kruegler at googlemail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel.kruegler@googlemail. | |com --- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> --- Seems to be fixed in 4.9.0 head. Note that your func function template is broken, because it is declared as returning void, but obviously returns a non-void result.