[clang] [clang] Allow class with anonymous union member to be const-default-constructible even if a union member has a default member initializer (#95854) (PR #96301)

Shafik Yaghmour via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 21 10:26:30 PDT 2024


================
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -std=c++23 -fsyntax-only -verify %s
----------------
shafik wrote:

I think this may be a more appropriate place for the test:

https://github.com/llvm/llvm-project/blob/main/clang/test/SemaCXX/anonymous-union.cpp

We usually wrap tests from github issues in a namespace starting with `GH` and followed by the issue number for this case `namespace GH95854`

https://github.com/llvm/llvm-project/pull/96301


More information about the cfe-commits mailing list