[OPENMP]Fix PR51327: Range based for loop not working if range's type is a template.

Need to postpone anlysis of the ranged for loops till the actual
instantiation to avoid erroneous emission of error messages.

Differential Revision: https://reviews.llvm.org/D114560

GitOrigin-RevId: a0839c13fd321bb852870ffab916ad90f691161b
2 files changed