https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52036
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2012-01-29 00:00:00 |2018-3-19 --- Comment #13 from Jonathan Wakely <redi at gcc dot gnu.org> --- That fails because the function has *no* linkage, not because it has internal linkage. That's a different case (and not supported in C++11 or C++14). It should work in C++17, but is not the subject of this bug report.