[Bug c++/60299] [C++11] Copy constructor calls itself if base class has a constructor which is a variadic function template
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 21 15:54:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60299
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Yes, the program is broken and G++ does exactly what it's supposed to.
You probably want:
template<typename ...Args>
B(Args&&... params)
{
}
More information about the Gcc-bugs
mailing list