------- Additional Comments From jakub at gcc dot gnu dot org  2005-02-28 09:45 
-------
TYPE_NAME (TYPE_MAIN_VARIANT (origin)) on that testcase is NULL, so it doesn't
help match.  Following patch certainly doesn't help.

--- dwarf2out.c.jj      2005-02-27 17:54:15.000000000 +0100
+++ dwarf2out.c 2005-02-28 10:39:37.926034399 +0100
@@ -10496,7 +10496,11 @@ add_abstract_origin_attribute (dw_die_re
       tree fn = origin;

       if (TYPE_P (fn))
-       fn = TYPE_STUB_DECL (fn);
+       {
+         fn = TYPE_STUB_DECL (fn);
+         if (fn == NULL)
+           fn = TYPE_NAME (TYPE_MAIN_VARIANT (origin));
+       }

       fn = decl_function_context (fn);
       if (fn)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19345

Reply via email to