[llvm-bugs] [Bug 48801] New: clang doesn't accept `const char *` value as a non-type template argument anymore

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jan 19 06:12:24 PST 2021


https://bugs.llvm.org/show_bug.cgi?id=48801

            Bug ID: 48801
           Summary: clang doesn't accept `const char *` value as a
                    non-type template argument anymore
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: C++2a
          Assignee: unassignedclangbugs at nondot.org
          Reporter: kyrab at mail.ru
                CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
                    llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk

After the very latest patches regarding non-type template arguments this
stopped compiling on x86_64-pc-windows-msvc clang:

template <const char *cp> void boro(){}

void zyoba(){
  boro<"">();
}

clang barfs "error: cannot mangle this template argument yet" on this.

Att. @zygoloid

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210119/b9f6c2f3/attachment-0001.html>


More information about the llvm-bugs mailing list