Yes, it’s a bug. It was was reported at [clang] Miscompilation concerning const pointer to file-scope compound literal · Issue #72784 · llvm/llvm-project · GitHub .