------- Comment #27 from pault at gcc dot gnu dot org 2009-05-30 08:27 ------- (In reply to comment #25)
> > types that are identical > I'm not sure this is related, but note comment #8. Even identical types are > not > identical, unless they are sequence type. Joost, No, this is not related. The testing in the front end is more or less OK. However, the compiler receives more than one delaration of derived types, either through explicit declaration, host association or use assocation. The middle-end has to ensure that the same backend_decl is used for each. Otherwise, when one is assigned to the other, via a defined assignement, it is found that the TREE_TYPEs are not the same. I have been trying to move the backend_decls up to global scope so as to ensure that this happens but I am missing some essential trick somewhere. I'll be asking the experts next week :-) Paul -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40011