[flang-commits] [flang] [Flang][OpenMP] Prevent ICE for certain constructs in unnamed programs (PR #73938)

Sergio Afonso via flang-commits flang-commits at lists.llvm.org
Mon Jan 15 06:18:09 PST 2024


================
@@ -25,7 +25,7 @@
 template <typename T>
 static Fortran::semantics::Scope *GetScope(
     Fortran::semantics::SemanticsContext &context, const T &x) {
-  std::optional<Fortran::parser::CharBlock> source{GetSource(x)};
+  std::optional<Fortran::parser::CharBlock> source{GetLastSource(x)};
----------------
skatrak wrote:

Does this sound like a reasonable solution? Thanks!

https://github.com/llvm/llvm-project/pull/73938


More information about the flang-commits mailing list