Hi, Martin, > On Oct 19, 2024, at 05:50, Martin Uecker <uec...@tugraz.at> wrote: > > > Hi Quin and Joseph, > > I saw that there is now new code in tu_tagged_types_compatible > which makes structure type incompatible depending on whether > there is ac counted_by attribute. Is this what we want?
Yes, I just checked our discussion history, that’s exactly based on our discussion and agreement at that time. Please see: https://gcc.gnu.org/pipermail/gcc-patches/2024-April/649174.html And the follow-up discussions. > I think a > warning might make more sense as this types are fundamentally > still compatible. Joseph, what’s your opinion on this? > > I also wonder if this could be handled generically by > comp_type_attributes? You mentioned this in the previous discussion. And then later you thought that might not work: https://gcc.gnu.org/pipermail/gcc-patches/2024-April/649197.html Qing > > > Martin > >