[llvm-bugs] [Bug 50039] New: Failure to deduce templated CNTTP

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Apr 20 08:11:56 PDT 2021


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

            Bug ID: 50039
           Summary: Failure to deduce templated CNTTP
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++2a
          Assignee: unassignedclangbugs at nondot.org
          Reporter: omer.rosler at gmail.com
                CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
                    llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk

The following is not accepted by clang:

```c++
template <auto> struct A { };
template <class> struct B { };

template<template <class> class Tmpl, Tmpl V> //error
void f (A<V>);

template<template <class> class Tmpl, class T, Tmpl<T> V> //this one works
void g (A<V>);

int main() {
  A<B<int>{}> x;
  f(x);
}
```

b.t.w gcc ICEs here (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99387)

-- 
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/20210420/9ddb65a7/attachment.html>


More information about the llvm-bugs mailing list