clang-cl.exe: False positive C++17 warning in C++14: out-of-line definition of constexpr static data member #65689
Labels
c++14
clang:diagnostics
New/improved warning or error message in Clang, but not in clang-tidy or static analyzer
When compiling with C++14, I'm getting a warning that pertains only to C++17.
I tried this out with LLVM 17.0.0-rc4.
Repro
clang-cl.exe <thefile.cpp> /std:c++14 -Weverything
Output
warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
The text was updated successfully, but these errors were encountered: