================
@@ -1225,3 +1225,25 @@ namespace ConditionalTemporaries {
static_assert(foo(false)== 13);
static_assert(foo(true)== 12);
}
+
+namespace FirstRecordMemberCmp {
+
+ struct tuple {
+ int a;
+ int b;
+ };
+
+ constexpr tuple tpl{1,2};
+ static_assert((void*)&tpl == (void*)&tpl.a);
----------------
tbaederr wrote:
This PR doesn't fix the `a + 1` issue. This PR is really superseded by
https://github.com/llvm/llvm-project/pull/172322
https://github.com/llvm/llvm-project/pull/172168
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits