[all-commits] [llvm/llvm-project] ac97cf: [C++20] [Modules] Don't diagnose duplicated declar...

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Tue Feb 11 14:06:13 PST 2025


  Branch: refs/heads/release/20.x
  Home:   https://github.com/llvm/llvm-project
  Commit: ac97cff5a3684be98f4863191f0006cdf0fa89b4
      https://github.com/llvm/llvm-project/commit/ac97cff5a3684be98f4863191f0006cdf0fa89b4
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2025-02-11 (Tue, 11 Feb 2025)

  Changed paths:
    M clang/lib/Serialization/ASTReaderDecl.cpp
    A clang/test/Modules/pr126373.cppm

  Log Message:
  -----------
  [C++20] [Modules] Don't diagnose duplicated declarations in different modules which is not in file scope

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

Although the root problems should be we shouldn't place the friend
declaration to the incorrect module, let's avoid bleeding the edge by
stoping diagnosing declarations not in file scope.

(cherry picked from commit 569e94f8f1c3e6998860e2b2ff577870433bdac9)



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