On Thu, Nov 05, 2020 at 10:45:59AM +0100, Richard Biener wrote: > Well, I think we should fix typeof to not retain the address space. It's > probably our implementation detail of having those in TYPE_QUALS > that exposes the issue and not standard mandated. > > The rvalue trick is to avoid depending on a "fixed" GCC. > > Joseph should know how typeof should behave here.
For other qualifiers like const it has been discussed recently in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97702 and I think the address space qualifiers should work the same as others. Jakub