This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ Patch] PR 53096


On 04/25/2012 10:25 AM, Paolo Carlini wrote:
Thus, the below elementary patch appears to work fine (I also double
checked that in such cases the type remains trivial). It's all there is
to it?

Unfortunately, I don't think so; there's a lot of code in the compiler that assumes that trivial constructors are also always callable. However, that might not be as big an issue for the copy constructor as it is for the default constructor, since copies go through overload resolution. So I guess if this patch passes the testsuite it's OK.


Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]