------- Comment #8 from jakub at gcc dot gnu dot org 2008-08-18 08:43 ------- Looking at the original namespace support in dwarf2out patches I found the declaration in the namespace and specification in CU is being done for compatibility with (at that time) existing debuggers. I'm not sure if we need to do the same for Fortran (maybe not, what does gdb do with DW_TAG_module?) or if we couldn't drop compatibility hacks for more than 5 years old dwarf2 debuggers by now even for C++. The duplicate declaration DIEs are still unexpected.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29635