The example from the bugzilla triggered two issues:
- In qualification conversion we are creating an address space conversion for non-pointer and non-reference type.
- We are not taking an address space from the right type when attempting to cast argument of 'this' to its parameter type.
I am a bit unsure if performAddrSpaceCast should be used, but considering that we know that we are not casting a constant it should be fine?
If not any suggestions how to propagate LangAS of 'this' here. Some thoughts I have are: