PR c++/19769
* dwarf2out.c (declare_in_namespace): Ignore decls with an abstract
origin.
From-SVN: r96715
+2005-03-18 James E Wilson <wilson@specifixinc.com>
+
+ PR c++/19769
+ * dwarf2out.c (declare_in_namespace): Ignore decls with an abstract
+ origin.
+
2005-03-18 Kazu Hirata <kazu@cs.umass.edu>
* config/mn10300/mn10300-protos.h: Remove the prototypes for
if (debug_info_level <= DINFO_LEVEL_TERSE)
return;
+ /* If this decl is from an inlined function, then don't try to emit it in its
+ namespace, as we will get confused. It would have already been emitted
+ when the abstract instance of the inline function was emitted anyways. */
+ if (DECL_P (thing) && DECL_ABSTRACT_ORIGIN (thing))
+ return;
+
ns_context = setup_namespace_context (thing, context_die);
if (ns_context != context_die)