From 4e64159c866446ed7f5783649f8f5699f84bb1a6 Mon Sep 17 00:00:00 2001 From: cor3ntin Date: Wed, 17 Jan 2024 06:16:12 +0100 Subject: [Clang] Implement CWG2598: Union of non-literal types (#78195) A union is considered a literal type unless it has no non-literal member. This resolves CWG2096 (which makes unions with literal members literal) and CWG2598 (empty unions are literal types). Fixes #77924 --- clang/www/cxx_dr_status.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/www') diff --git a/clang/www/cxx_dr_status.html b/clang/www/cxx_dr_status.html index 397bf13..5e7c1a0 100755 --- a/clang/www/cxx_dr_status.html +++ b/clang/www/cxx_dr_status.html @@ -12384,7 +12384,7 @@ and POD class 2096 CD4 Constraints on literal unions - Unknown + Duplicate of 2598 2097 @@ -15396,7 +15396,7 @@ and POD class 2598 C++23 Unions should not require a non-static data member of literal type - Unknown + Clang 18 2599 -- cgit v1.1