CarlosAlbertoEnciso wrote:

> > To work out which class A this refers to would involve parsing the template 
> > parameter correctly and matching to the correct anonymous namespace. While 
> > this technically isn’t impossible
> 
> Are you sure about that? Anonymous types are confined to a single CU 
> statically, but their values can definitely leak out at runtime. So if I'm 
> stopped in a random CU and I see am object whose dynamic type is `(anonymous 
> namespace)::X`, I don't see how one could determine which type (out of 
> possibly many) is that vtable referring to.

@labath I will double check with our debugger team.

https://github.com/llvm/llvm-project/pull/130255
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to