https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117177

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Ah,
unsigned char foo[] = {
  0xc8, 0xc9, 0xca, 0xcb, 0x00, 0xcd, 0xce, 0xcf,
  0x00, 0xd1, 0x00, 0xd3, 0xd4, 0x00, 0xd6, 0xd7,
  0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0x00, 0x00, 0xdf,
  0xe0, 0xe1, 0xe2, 0x00, 0xe4, 0xe5, 0xe6, 0xe7,
  0xe8, 0xe9, 0xea, 0xeb, 0x00, 0xed, 0xee, 0xef,
  0x00, 0xf1, 0x00, 0xf3, 0xf4, 0x00, 0xf6, 0xf7,
  0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0x00, 0x00, 0xff,
  0x00, 0x00, 0xc3, 0xe3, 0x00, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
typedef int bar[sizeof (foo) == 72 ? 1 : -1];
reproduces it.
The size of the initializer actually emitted is correct, just sizeof and .size
are wrong.

Reply via email to