------- Additional Comments From jakub at gcc dot gnu dot org  2005-04-07 14:26 
-------
> That's wrong.  The size always needs to be a multiple of the alignment.
> That's fundamental.

With user defined alignment, size certainly is not necessarily a multiple of the
alignment and with the exception of arrays it shouldn't cause any problems.
In arrays I agree this is a problem.  Now, the question is what to do:
1) issue error whenever a type with alignment bigger than size is used in
   an array
2) align the whole array and change the element type silently to a type
   with alignment equal to the element size


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20794

Reply via email to