https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69518
Bug ID: 69518 Summary: Flag -g causes "error: type variant has different TYPE_VFIELD" Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- Created attachment 37493 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37493&action=edit C source code gcc trunk, dated 20160127, when given the attached C code and asked to compile it with -g, does this: common.c: In function ‘stats_errcount’: common.c:611:1: error: type variant has different TYPE_VFIELD <record_type 0x7f8488d94690 s_stats asm_written type_0 BLK size <integer_cst 0x7f8488c316d8 type <integer_type 0x7f8488e322a0 bitsizetype> constant 640> unit size <integer_cst 0x7f8488c31678 type <integer_type 0x7f8488e321f8 sizetype> constant 80> align 64 symtab -1998967440 alias set -1 canonical type 0x7f8488d94690 fields <field_decl 0x7f8488d56390 cnt_regfile Without -g, it compiles fine.