This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
[C++] Re: PARM_DECL of DECL_SIZE 0, but TYPE_SIZE of 96 bits
On Wed, Jun 29, 2005 at 09:17:07PM -0400, Daniel Berlin wrote:
> 1. In require_complete_types_for_parms, in the C++ FE, reset DECL_SIZE
> to NULL before we call layout_decl on the parm and let layout_decl
> figure out what to do.
This is what relayout_decl does.
> 2. Add code in layout_decl to copy TYPE_SIZE/TYPE_SIZE_UNIT if the
> DECL_SIZE is integer_cst (0)
Bad.
> 3. Not call layout_decl on the template types until they are completed.
Certainly an option; not doing extra work is good.
4. Make sure that template types are incomplete. That is, with
TYPE_SIZE/TYPE_SIZE_UNIT unset.
A C++ front end maintainer should help choose.
r~