[all-commits] [llvm/llvm-project] cc4ec6: [C++20] [Modules] Diagnose redeclarations from dif...

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Mon Jun 24 04:05:00 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cc4ec6daf0d4f43110e8220d542c1155b8c1ef51
      https://github.com/llvm/llvm-project/commit/cc4ec6daf0d4f43110e8220d542c1155b8c1ef51
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Serialization/ASTReaderDecl.cpp
    M clang/test/Modules/no-eager-load.cppm
    A clang/test/Modules/same-decl-in-different-modules.cppm

  Log Message:
  -----------
  [C++20] [Modules] Diagnose redeclarations from different modules

[basic.link]/p10:

> If two declarations of an entity are attached to different modules,
> the program is ill-formed

But we only implemented the check for ODR. In this patch, we tried to
diagnose the redeclarations from 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