Created attachment 22055
Minimal repro files
Reproduces under Ubuntu 19.04 with both Clang 8 from the Canonical repository,
and Clang 9 from the LLVM Nightly packages. Does not appear to reproduce under
WSL on Windows. clang-cl on Windows also works fine.
Example:
#define X 0
#pragma detect_mismatch("X", "0")
Minimal repro with output attached.
repro.zip
(1779 bytes, application/x-zip-compressed)