[all-commits] [llvm/llvm-project] cc526e: [C++20] [Coroutines] Disable to take the address o...

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Mon Jan 16 19:36:10 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cc526e346debbaf1d2d32a59230288a4e98294c7
      https://github.com/llvm/llvm-project/commit/cc526e346debbaf1d2d32a59230288a4e98294c7
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2023-01-17 (Tue, 17 Jan 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/include/clang/Sema/ScopeInfo.h
    M clang/lib/Sema/ScopeInfo.cpp
    M clang/lib/Sema/SemaCoroutine.cpp
    M clang/lib/Sema/SemaExpr.cpp
    A clang/test/SemaCXX/addr-label-in-coroutines.cpp

  Log Message:
  -----------
  [C++20] [Coroutines] Disable to take the address of labels in coroutines

Closing https://github.com/llvm/llvm-project/issues/56436

We can't support the GNU address of label extension in coroutines well
in current architecture. Since the coroutines are going to split into
pieces in the middle end so the address of labels are ambiguous that
time.

To avoid any further misunderstanding, we try to emit an error here.

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




More information about the All-commits mailing list