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

            Bug ID: 49677
           Summary: Clang rejects binding list initializers to CNTTPs
           Product: clang
           Version: unspecified
          Hardware: All
                OS: All
            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

This compiles with gcc and MSVC but rejected by clang:

```c++
struct A { int i; };
template<A a>
void foo() {}

int main()
{
    foo<{1}>(); //error
}
```

Live demo: https://godbolt.org/z/oxj6Gnroq

-- 
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