[llvm-bugs] [Bug 49677] New: Clang rejects binding list initializers to CNTTPs
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Mar 22 04:51:52 PDT 2021
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: 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
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210322/59b0fb02/attachment.html>
More information about the llvm-bugs
mailing list