Fixes bug reported via Stackoverflow:
https://stackoverflow.com/questions/64179168/clang-overload-resolution-failure-with-templates-and-openmp-collapse
Need to honor constantness of private/target variables to  make the code
compilable.
| Paths 
 |  Differential  D91644  
[OPENMP]Honor constantness of captured variables. ClosedPublic Authored by ABataev on Nov 17 2020, 9:56 AM. 
Details 
 Summary Fixes bug reported via Stackoverflow: Need to honor constantness of private/target variables to  make the code 
Diff Detail 
 Event TimelineThis revision is now accepted and ready to land.Nov 19 2020, 6:26 PM This revision was landed with ongoing or failed builds.Nov 20 2020, 11:12 AM Closed by commit rG8f51dc49673c: [OPENMP]Honor constantness of captured variables. (authored by ABataev).  ·  Explain Why This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
 
Diff 306746 clang/lib/Sema/SemaExpr.cpp
 
 clang/test/OpenMP/distribute_firstprivate_messages.cpp
 clang/test/OpenMP/openmp_capture_const_var_ast_print.cpp
 
 clang/test/OpenMP/teams_distribute_firstprivate_messages.cpp
 clang/test/OpenMP/teams_distribute_parallel_for_firstprivate_messages.cpp
 clang/test/OpenMP/teams_distribute_parallel_for_simd_firstprivate_messages.cpp
 clang/test/OpenMP/teams_distribute_simd_firstprivate_messages.cpp
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||