C++ PATCH to layout_empty_base for c++/10179

Jason Merrill jason@redhat.com
Fri Sep 28 20:13:00 GMT 2007


For non-empty bases, the base field we create provides the necessary 
alignment.  But we don't create a field for empty bases, so we need to 
propagate alignment requirements explicitly.  I'm a bit surprised that 
people want to use empty bases to impose alignment requirements, but it 
seems like it ought to work if they do.

Tested x86_64-pc-linux-gnu, applied to trunk.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: empty-align.patch
Type: text/x-patch
Size: 3569 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070928/23cb7395/attachment.bin>


More information about the Gcc-patches mailing list