[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


http://bugs.llvm.org/show_bug.cgi?id=32389

            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 8.3.4.1:
" 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
zero."

-- 
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