gcc-3.4 changes.html : template vs. copy ctor

Michael Veksler VEKSLER@il.ibm.com
Wed Apr 14 09:57:00 GMT 2004


I think that changes.html should describe the following change 
that the new parser introduced.

        template <class T>  class A {
                template <class U> A(const A<U>&);
        };
As of 3.4, A<int>::A<int>(const A<int>&) is not treated as
a copy constructor. Among other things, the compiler may
create an implicit copy constructor.



More information about the Gcc mailing list