[all-commits] [llvm/llvm-project] 4d9251: [C++20] [Modules] Merge same concept decls in glob...

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Thu Jul 28 19:51:13 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4d9251bd780d20eebbcb124608b36a69787d5575
      https://github.com/llvm/llvm-project/commit/4d9251bd780d20eebbcb124608b36a69787d5575
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2022-07-29 (Fri, 29 Jul 2022)

  Changed paths:
    M clang/include/clang/Basic/Module.h
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/SemaDecl.cpp
    M clang/lib/Sema/SemaTemplate.cpp
    A clang/test/Modules/merge-concepts.cppm

  Log Message:
  -----------
  [C++20] [Modules] Merge same concept decls in global module fragment

According to [basic.def.odr]p14, the same redeclarations in different TU
but not attached to a named module are allowed. But we didn't take care
of concept decl for this condition. This patch tries to fix this
problem.

Reviewed By: ilya-biryukov

Differention Revision: https://reviews.llvm.org/D130614




More information about the All-commits mailing list