On 05/18/2017 02:57 PM, Bruno Haible wrote:
a) Cap this alignment at max_align_t. b) Use <stdalign.h>, as in the patch below (untested).
(a) sounds reasonable. I don't think (b) will be portable enough, because on some pre-C11 compilers the Gnulib substitute for _Alignof does not work on structure types containing a flexible array member.