[PATCH] D136564: [clang] Instantiate NTTPs and template default arguments with sugar

Haojian Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 28 01:25:52 PDT 2022


hokein added a comment.

In D136564#3890676 <https://reviews.llvm.org/D136564#3890676>, @rtrieu wrote:

> I noticed some build failures after your commit.  I'm trying to get a standalone reproducer.

Here is the broken testcase:

  // -std=c++17
  #include <string>
  
  template <typename Type, typename... Unused>
  using FixedTypeT = Type;
  
  template <typename... Fields>
  class T {
    T(const FixedTypeT<std::string_view, Fields>... names)
        : names_(std::string(names)...) {}
    std::string names_;
  };


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D136564/new/

https://reviews.llvm.org/D136564



More information about the cfe-commits mailing list