https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69518
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2016-01-27 CC| |trippels at gcc dot gnu.org Component|c |debug Summary|Flag -g causes "error: type |[6 Regression] Flag -g |variant has different |causes "error: type variant |TYPE_VFIELD" |has different TYPE_VFIELD" Ever confirmed|0 |1 --- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- markus@x4 tmp % cat bug269.c struct s_stats a; typedef struct s_stats cstats; struct s_stats { } fn1(cstats p1) { } markus@x4 tmp % gcc -c -g bug269.c bug269.c: In function ‘fn1’: bug269.c:5:1: error: type variant has different TYPE_VFIELD } ^ <record_type 0x7fc47749a348 s_stats asm_written type_0 BLK size <integer_cst 0x7fc477396d20 type <integer_type 0x7fc47739a2a0 bitsizetype> constant 0> unit size <integer_cst 0x7fc477396cd8 type <integer_type 0x7fc47739a1f8 sizetype> constant 0> align 8 symtab 2001394976 alias set -1 canonical type 0x7fc47749a348 context <translation_unit_decl 0x7fc4773a21e0 D.1761> chain <type_decl 0x7fc4773bad10 D.1755>> <record_type 0x7fc47749a540 cstats BLK size <integer_cst 0x7fc477396d20 type <integer_type 0x7fc47739a2a0 bitsizetype> constant 0> unit size <integer_cst 0x7fc477396cd8 type <integer_type 0x7fc47739a1f8 sizetype> constant 0> align 8 symtab 2001395216 alias set -1 canonical type 0x7fc47749a348 context <translation_unit_decl 0x7fc4773a21e0 D.1761> chain <type_decl 0x7fc4773bad10 D.1755>> bug269.c:5:1: internal compiler error: verify_type failed 0xdc44ad verify_type(tree_node const*) ../../gcc/gcc/tree.c:13888 0x7c522c gen_type_die_with_usage ../../gcc/gcc/dwarf2out.c:22701 0x7c65f6 gen_type_die ../../gcc/gcc/dwarf2out.c:22899 0x7be320 gen_decl_die ../../gcc/gcc/dwarf2out.c:23555 0x7bb364 gen_subprogram_die ../../gcc/gcc/dwarf2out.c:20704 0x7bde6c gen_decl_die ../../gcc/gcc/dwarf2out.c:23468 0x7bedae dwarf2out_decl ../../gcc/gcc/dwarf2out.c:23951 0x7d6538 dwarf2out_early_global_decl ../../gcc/gcc/dwarf2out.c:23624 0x74efeb symbol_table::finalize_compilation_unit() ../../gcc/gcc/cgraphunit.c:2549