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: unassignedclangb...@nondot.org Reporter: ca...@carter.net CC: dgre...@apple.com, llvm-bugs@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.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs