[llvm-bugs] [Bug 32389] New: array may have zero size

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Mar 23 02:12:52 PDT 2017


            Bug ID: 32389
           Summary: array may have zero size
           Product: clang
           Version: 4.0
          Hardware: PC
                OS: Windows 2000
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: C++14
          Assignee: unassignedclangbugs at nondot.org
          Reporter: powerchord at web.de
                CC: llvm-bugs at lists.llvm.org

The following is NO error in clang 4.0.0 (and 5.0.0 based upon LLVM
5.0.0-r295586) / Visual Studio 2017:

int i[0];

But the C++14 standard says in
" If the constant-expression (5.19) is present, it shall be a converted
constant expression of type std::size_t and its value shall be greater than

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/20170323/3e658f31/attachment-0001.html>

More information about the llvm-bugs mailing list