[llvm-bugs] [Bug 32067] New: clang incorrectly treats strlen as an integer constant expression

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Feb 24 15:50:18 PST 2017


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

            Bug ID: 32067
           Summary: clang incorrectly treats strlen as an integer constant
                    expression
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: efriedma at codeaurora.org
                CC: llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk

Testcase (C):

#include <string.h>
int a[strlen("z")];

clang emits no error, even in -pedantic mode.

-- 
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/20170224/bd143a81/attachment.html>


More information about the llvm-bugs mailing list