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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

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
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to