https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86563
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-07-18 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- This might depend on the point of instantiation of the function template. The type is complete when the template is instantiated (although T is not dependent in the template body, so maybe it should be diagnosed earlier).