http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60047

            Bug ID: 60047
           Summary: ICE with defaulted copy-constructor and virtual base
                    class
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: paolo.carlini at oracle dot com

Testcase (noticed while looking into PR58871):

struct B { };

template<typename T> struct A : virtual B
{
   A();
   A(const A&);
};

template<typename T> A<T>::A(const A<T>&) = default;

A<int> a = A<int>();

Reply via email to