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