https://github.com/Endilll created https://github.com/llvm/llvm-project/pull/189310
This is a small fix for `#if __cplusplus >= 202002L` condition, which accidentally disabled this part of the test in C++20 mode. >From a182398150d5b2946e4c51a3f92956f2152da356 Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov <[email protected]> Date: Mon, 30 Mar 2026 07:14:34 +0300 Subject: [PATCH] [clang] Enable part of CWG2598 test in C++20 mode --- clang/test/CXX/drs/cwg25xx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/test/CXX/drs/cwg25xx.cpp b/clang/test/CXX/drs/cwg25xx.cpp index 9f83a17d4b1c3..d5219bcd74756 100644 --- a/clang/test/CXX/drs/cwg25xx.cpp +++ b/clang/test/CXX/drs/cwg25xx.cpp @@ -378,7 +378,7 @@ struct Literal { constexpr Literal() {} }; union union6 { NonLiteral NL; Literal L; }; static_assert(__is_literal(union6), ""); -#if __cplusplus >= 202003L +#if __cplusplus >= 202002L struct A { A(); }; union U { A a; _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
