C++ PATCH for c++/70259 (-flifetime-dse vs. empty bases)

2016-03-19 Thread Jason Merrill
The constructor for an empty class can't do the -flifetime-dse clobber because when the class is used as a base it might be assigned the same offset as a real base, so the clobber would mess with real data. Tested x86_64-pc-linux-gnu, applying to trunk. commit e1a5f038350d1881153d8f65359bd883f

Re: C++ PATCH for c++/70259 (-flifetime-dse vs. empty bases)

2016-03-18 Thread Jakub Jelinek
On Wed, Mar 16, 2016 at 02:47:09PM -0400, Jason Merrill wrote: > The constructor for an empty class can't do the -flifetime-dse clobber > because when the class is used as a base it might be assigned the same > offset as a real base, so the clobber would mess with real data. Isn't this needed also