[all-commits] [llvm/llvm-project] 9e36e5: [C++20] [Modules] Don't check redeclaration for Ta...

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Mon Sep 21 02:41:54 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9e36e5a44bb5ade74202b01246cab4231d202972
      https://github.com/llvm/llvm-project/commit/9e36e5a44bb5ade74202b01246cab4231d202972
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2026-09-21 (Mon, 21 Sep 2026)

  Changed paths:
    M clang/lib/Sema/SemaDecl.cpp
    A clang/test/Modules/pr72038.cppm

  Log Message:
  -----------
  [C++20] [Modules] Don't check redeclaration for TagUseKind::Referencekind declaration (#194546)

Close https://github.com/llvm/llvm-project/issues/72038

The reason of the issue is ISO forbids redeclaration between GMF and the
module purview.

But "struct kevent evt;" was thought to be declaration than triggers the
above issue.

In this patch, we simply not checking for cases of TagUseKind::Reference
declaration.



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