http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60625
--- Comment #3 from petschy at gmail dot com --- Thanks. It's then an inconsistency, right? Because the non-template fn def didn't trigger the error while the template version did so. Moreover, the error message is misleading, because it said attributes were not allowed, while they are allowed, just not at the end.