[all-commits] [llvm/llvm-project] 144c93: [C++20] [Modules] Don't diagnose redeclaration of ...

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Tue Sep 9 07:31:09 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 144c93b3bdba6cd59bb550064b538488d159d1c5
      https://github.com/llvm/llvm-project/commit/144c93b3bdba6cd59bb550064b538488d159d1c5
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2025-09-09 (Tue, 09 Sep 2025)

  Changed paths:
    M clang/lib/Sema/SemaDecl.cpp
    A clang/test/Modules/added-visible-decls.cppm

  Log Message:
  -----------
  [C++20] [Modules] Don't diagnose redeclaration of implicit instantiations in different modules

See the attached example for motivation. Although it is not sure how
should we treat the modules ownership of the implicit instantiations,
it makes no sense to diagnose redeclaration of implicit instantiations
in different modules.



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