[llvm-bugs] [Bug 41882] New: Non-type template params with braced-init-list initializers are not supported
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed May 15 03:38:58 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41882
Bug ID: 41882
Summary: Non-type template params with braced-init-list
initializers are not supported
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: blitzrakete at gmail.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
template <int = {}> void f(); // expected expression
One of the things nobody uses, it doesn't even have a TODO somewhere or a
intentionally broken test AFAICT.
We should probably start supporting this, with C++2a's class type non-type
template parameters potentially making this kind of construct more popular. :)
--
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/20190515/d0541a03/attachment.html>
More information about the llvm-bugs
mailing list