[llvm-bugs] [Bug 36948] New: compile error for empty brace initialization of non type template argument

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Mar 29 00:02:42 PDT 2018


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

            Bug ID: 36948
           Summary: compile error for empty brace initialization of non
                    type template argument
           Product: clang
           Version: 6.0
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: sw6ueyz at gmail.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

// this code does not compile

template< int X = {} >
struct Test {};

int main() { return 0; }

-- 
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/20180329/ceb9c5de/attachment.html>


More information about the llvm-bugs mailing list