[all-commits] [llvm/llvm-project] 9b808a: [NFC] [Modules] Add a test case for selecting spec...

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Sun Jan 7 22:47:13 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9b808a4beb8e6c8255b412fdd6f5a3e20cbcf270
      https://github.com/llvm/llvm-project/commit/9b808a4beb8e6c8255b412fdd6f5a3e20cbcf270
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2024-01-08 (Mon, 08 Jan 2024)

  Changed paths:
    A clang/test/Modules/explicit-specializations.cppm

  Log Message:
  -----------
  [NFC] [Modules] Add a test case for selecting specializations with aliased template args

This a test for https://github.com/llvm/llvm-project/pull/76774. In the
review comments, we're concerning about the case that ODRHash may
produce the different hash values for semantical same template
arguments. For example, if the template argument in a specialization is
not qualified and the semantical same template argument in the instantiation
point is qualified, we should be able to select that template
specialization. And this patch tests this behavior: we should be able to select
the correct specialization with semantical same template arguments.




More information about the All-commits mailing list