------- Comment #41 from rguenth at gcc dot gnu dot org  2009-07-26 21:23 
-------
3323          gcc_assert (TYPE_CONTEXT (decl) == NULL_TREE
3324                      || TYPE_CONTEXT (decl) ==
sym->ns->proc_name->backend_decl);
3325          gcc_assert (DECL_CONTEXT (TYPE_STUB_DECL (decl)) == NULL_TREE
3326                      || DECL_CONTEXT (TYPE_STUB_DECL (decl))
3327                         == sym->ns->proc_name->backend_decl);

if the second assert isn't bogus then both types (the one in the replica_type
module and the imported one) have to have separate type-stub-decls (thus
two debug information entries).

Personally I think it is quite reasonable to use the replica_type modules
debug info for the USE imported one, thus simply remove the 2nd assert.


-- 


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

Reply via email to