https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61892
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to tower120 from comment #2) > Well ok, but what about this? > > http://coliru.stacked-crooked.com/a/e3ce8882c68dbef2 > > Why it copy with wrong number of argument? It doesn't. C<>(1, 1, 1) calls the constructor template with three arguments, obviously. Initializing the return value calls the constructor template with one argument. (In reply to tower120 from comment #3) > But wait, we talk about move constructor. But this is a template class. > Template class can not have move constructor at all. That's not true. There is no bug here.