[all-commits] [llvm/llvm-project] 1cbc01: [flang][OpenMP] Error out when CHARACTER type is u...

NimishMishra via All-commits all-commits at lists.llvm.org
Tue Oct 22 19:29:43 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1cbc015551e1b2445cb215a74d1eccab80041998
      https://github.com/llvm/llvm-project/commit/1cbc015551e1b2445cb215a74d1eccab80041998
  Author: NimishMishra <42909663+NimishMishra at users.noreply.github.com>
  Date:   2024-10-22 (Tue, 22 Oct 2024)

  Changed paths:
    M flang/lib/Lower/DirectivesCommon.h
    M flang/lib/Semantics/check-omp-structure.cpp
    R flang/test/Lower/OpenMP/Todo/atomic-character.f90
    M flang/test/Semantics/OpenMP/atomic02.f90
    M flang/test/Semantics/OpenMP/omp-atomic-assignment-stmt.f90

  Log Message:
  -----------
  [flang][OpenMP] Error out when CHARACTER type is used in atomic constructs (#113045)

According to OpenMPv5.2 1.2.6, "For Fortran, a scalar variable with
intrinsic type, as defined by the base language, excluding character
type.". Likewise, section 4.3.1.3 states that atomic operations are on
"scalar variables of intrinsic type". This PR hence introduces a check
to error out when CHARACTER type is used in atomic operations.

Fixes https://github.com/llvm/llvm-project/issues/112918



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