[llvm-bugs] [Bug 30723] New: false positive for "-Wzero-length-array"
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Oct 17 14:18:36 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=30723
Bug ID: 30723
Summary: false positive for "-Wzero-length-array"
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: Casey at Carter.net
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
Classification: Unclassified
This program:
template <int N = 42>
auto f() -> decltype(new int[N]{});
using F = decltype(f());
compiled with -Wzero-length-array (which happens to be under -pedantic) results
in:
prog.cc:2:32: warning: zero size arrays are an extension [-Wzero-length-array]
auto f() -> decltype(new int[N]{});
^
--
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/20161017/736dadad/attachment.html>
More information about the llvm-bugs
mailing list