------- Comment #3 from baldrick at free dot fr 2009-09-12 19:52 ------- I just updated to top-of-tree, and the same problem is present. I think the variable is the RESULT_DECL from function f. Here's a dump of the repeated variable (notice how the next variable on the chain is the same as this one):
(gdb) call debug_tree(cfun->local_decls) <tree_list 0x7ffff70da6f0 value <var_decl 0x7ffff7f51be0 D.2696 type <integer_type 0x7ffff7e8c540 int public SI size <integer_cst 0x7ffff7e7ba80 constant 32> unit size <integer_cst 0x7ffff7e7b6f0 constant 4> align 32 symtab 0 alias set 9 canonical type 0x7ffff7e8c540 precision 32 min <integer_cst 0x7ffff7e7b9f0 -2147483648> max <integer_cst 0x7ffff7e7ba20 2147483647> pointer_to_this <pointer_type 0x7ffff7e9bb40>> used ignored SI file decls.c line 2 col 6 size <integer_cst 0x7ffff7e7ba80 32> unit size <integer_cst 0x7ffff7e7b6f0 4> align 32 context <function_decl 0x7ffff70c1e00 g> abstract_origin <result_decl 0x7ffff70db000 D.1604>> chain <tree_list 0x7ffff70da6c0 value <var_decl 0x7ffff7f51be0 D.2696>>> -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41339