If dependent types appear in pointers or references we have to allow the addr space deduction because the addr space in template argument will belong to the pointee and not the pointer or reference itself. Hence we end up with un-deduced i.e. Default address space.
We also need to change somke diagnostic to account for addr space logic with templates.