[Bug c++/10179] alignment attributes are not inherited correctly with empty classes
jason at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Sep 28 18:08:00 GMT 2007
------- Comment #5 from jason at gcc dot gnu dot org 2007-09-28 18:08 -------
Subject: Bug 10179
Author: jason
Date: Fri Sep 28 18:07:57 2007
New Revision: 128871
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128871
Log:
PR c++/10179
* class.c (layout_empty_base): Take rli parameter, update
rli->record_align if empty base has user-specified alignment.
(build_base_field): Pass rli to it.
Added:
trunk/gcc/testsuite/g++.dg/ext/align2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/class.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10179
More information about the Gcc-bugs
mailing list