[C/C++, OpenACC] Reject vars of different scope in acc declare (PR94120)