fix Issue 11922 - [REG2.065a] ICE on nonexistent identifier in templated...

... auto method

https://d.puremagic.com/issues/show_bug.cgi?id=11922