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]

Re: [PATCH] Fix for the C++ testcase submitted today


>>>>> Jakub Jelinek <jakub@redhat.com> writes:

 > This patch fixes the C++ failure with static class data member of the same
 > type as the containing class I posted today.

I think it's just papering over the real bug, which is that we don't layout
bar::baz properly when bar is complete.  That's what
hack_incomplete_structures is supposed to be doing.

Your patch makes more sense for memcpying a pointer to a type that isn't
defined in the translation unit; but there, I think the right fix is to set
TYPE_ALIGN of incomplete types to something more reasonable rather than
change this one user of that information.

Jason

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