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

Reply via email to