http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59440
--- Comment #9 from Tobias Burnus <burnus at gcc dot gnu.org> --- I see two not so pretty solutions: a) The simple way: Duplicate debug info by also emitting code for the original DECL. b) The hard & slow way: In tree-nested.c, add another walk_tree(), to be run after walk_function(), which searches for TREE_CODE() == NAMELIST_DECL. Then, the easy part follows: Go through the VEC of the NAMELIST_DECL and replace the original decl by the one returned by pointer_map_contains(info->var_map, decl).