[Bug c++/59579] New: Defaulted copy constructor of template class is instantiated even when not called (probably bug 57153)

2013-12-22 Thread Konstantin.Sadov at gmail dot com
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: Konstantin.Sadov at gmail dot com The following code struct A{A()=default;A(A&)=default;}; templatestruct C:B{C()=default; #if 1 C(const C&)

[Bug c++/59579] Defaulted copy constructor of template class is instantiated even when not called (probably bug 57153)

2013-12-22 Thread Konstantin.Sadov at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59579 --- Comment #1 from Konstantin Sadov --- Similar programs with defaulted default and move constructors work, so the problem is for copy constructor only. struct A{A()=delete;A(A&)=default;}; template struct C:B{C()=default;C(C&)=default;}; C d(d

[Bug c++/69743] New: function overload - template instantiation depth exceeds maximum (gcc4, clang - no problem)

2016-02-10 Thread Konstantin.Sadov at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: Konstantin.Sadov at gmail dot com Target Milestone: --- The following code [code] template void f(int, T... d) { } template void f(T... d) { f(1, d

[Bug c++/69743] [5/6 Regression] function overload with variadic arguments - template instantiation depth exceeds maximum (gcc4, clang - no problem)

2016-02-10 Thread Konstantin.Sadov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69743 --- Comment #2 from Konstantin Sadov --- I just reproduced that in 4.9.3, but the error is a little different [error] error: no matching function for call to ‘f(int, int&, lots of int&, int&, double&)’ note: candidates are: note: template void f