clang++-19 -std=gnu++14 -Wc++20-extensions wrongly warns about GNU variadic macro extension #109677
Labels
clang:diagnostics
New/improved warning or error message in Clang, but not in clang-tidy or static analyzer
Hi,
for simple code like
compiled with
clang++-19 -std=gnu++14 test-variadic-macro.cpp -Wc++20-extensions
now this incorrect (for C++14 with GNU extensions) warning shows:This breaks a lot of code in release mode compiles. Also adding
-Wno-gnu-zero-variadic-macro-arguments
after-Wc++20-extensions
doesn't help here. All earlier clang versions I tested including clang-18.1.8 got this right and didn't warn.Maybe related to issue #76375
The text was updated successfully, but these errors were encountered: