[llvm-bugs] [Bug 25890] New: Possibility pass a pointer as an array dimension in new-expr

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Dec 18 10:55:50 PST 2015


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

            Bug ID: 25890
           Summary: Possibility pass a pointer as an array dimension in
                    new-expr
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: droffset at yandex.ru
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

Hey there, I'm facing a bug regarding using pointer as an array dimesion in
new-expression. This code is compiled successfully.

int main()
{
    int * s = new int[1000];
    int * p = new int[ s ];
}

Bug is seen since version 3.4 in C++1y mode, and later up to 3.8 in C++14 and
C++1z modes.

-- 
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/20151218/e177eb3b/attachment.html>


More information about the llvm-bugs mailing list