fix Issue 11922 - [REG2.065a] ICE on nonexistent identifier in templated auto method
Merge pull request #3094 from WalterBright/fix11922

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