[all-commits] [llvm/llvm-project] a1ac5a: [flang] Allow OpenMP declarations before type decl...

Leandro Lupori via All-commits all-commits at lists.llvm.org
Thu Oct 17 07:32:45 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a1ac5a57ae13d22d20c6ac71fbbccbd9f87b0a72
      https://github.com/llvm/llvm-project/commit/a1ac5a57ae13d22d20c6ac71fbbccbd9f87b0a72
  Author: Leandro Lupori <leandro.lupori at linaro.org>
  Date:   2024-10-17 (Thu, 17 Oct 2024)

  Changed paths:
    M flang/lib/Semantics/resolve-names.cpp
    R flang/test/Semantics/OpenMP/declarative-directive.f90
    A flang/test/Semantics/OpenMP/declarative-directive01.f90
    A flang/test/Semantics/OpenMP/declarative-directive02.f90
    M flang/test/Semantics/OpenMP/declare-target06.f90

  Log Message:
  -----------
  [flang] Allow OpenMP declarations before type declarations (#112414)

Skip resolving implicit types for OpenMP declarative directives, to
allow them to appear before type declarations, which is supported
by several compilers. This was discussed in

https://discourse.llvm.org/t/rfc-openmp-should-type-declaration-be-allowed-after-threadprivate/81345.

This fixes the semantic errors of
https://github.com/llvm/llvm-project/issues/106021.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list