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: unassignedclangb...@nondot.org
          Reporter: omer.ros...@gmail.com
                CC: blitzrak...@gmail.com, erik.pilking...@gmail.com,
                    llvm-bugs@lists.llvm.org, richard-l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to