https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49459
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2011-06-17 18:56:47 |2016-2-24 CC| |msebor at gcc dot gnu.org Known to fail| |6.0 --- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> --- Reconfirming that the same bug still exists in 6.0: $ cat v.c && /home/msebor/build/gcc-trunk-svn/gcc/xgcc -B/home/msebor/build/gcc-trunk-svn/gcc -c -Wall -Wextra -Wpedantic -g -xc v.c && objdump -g v.o | sed -n "/DW_TAG_enumeration_type/,/DW_AT_byte_size/p" typedef enum { a, b, c } e1 __attribute__((mode (byte))); typedef enum { a2, b2, c2 } e2; e1 foo; int s1 = sizeof (foo); e2 bar; int s2 = sizeof (bar); <1><1d>: Abbrev Number: 2 (DW_TAG_enumeration_type) <1e> DW_AT_byte_size : 4 <1><47>: Abbrev Number: 2 (DW_TAG_enumeration_type) <48> DW_AT_byte_size : 4 2 DW_TAG_enumeration_type [has children] DW_AT_byte_size DW_FORM_data1