Skip to content

Commit 6d24b53

Browse files
authored
Deduction failures in pointer interconvertibility trait tests (#5730)
1 parent 9e2d9ec commit 6d24b53

File tree

1 file changed

+0
-5
lines changed
  • tests/std/tests/P0466R5_layout_compatibility_and_pointer_interconvertibility_traits

1 file changed

+0
-5
lines changed

tests/std/tests/P0466R5_layout_compatibility_and_pointer_interconvertibility_traits/test.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,6 @@ constexpr bool test() {
176176
}
177177
};
178178

179-
struct NS : S1, S2 {}; // Non-standard layout
180-
181179
ASSERT(is_corresponding_member(&S1::v1, &S::v1));
182180
ASSERT(is_corresponding_member(&S1::v2, &S::v2));
183181
ASSERT(is_corresponding_member(&S1::v1, &S1::v1));
@@ -199,7 +197,6 @@ constexpr bool test() {
199197
ASSERT(!is_corresponding_member(&S5::v1, &S6::v2));
200198
ASSERT(!is_corresponding_member(&S5::v2, &S6::v1));
201199
ASSERT(!is_corresponding_member(&S5::v3, &S6::v3));
202-
ASSERT(!is_corresponding_member<NS, NS>(&NS::v1, &NS::w1));
203200
ASSERT(!is_corresponding_member(&S7::f1, &S7::f1));
204201
ASSERT(!is_corresponding_member(static_cast<int S1::*>(nullptr), static_cast<int S2::*>(nullptr)));
205202
ASSERT(!is_corresponding_member(&S1::v1, static_cast<int S2::*>(nullptr)));
@@ -233,8 +230,6 @@ constexpr bool test() {
233230
ASSERT(is_pointer_interconvertible_with_class(&U::v1));
234231
ASSERT(is_pointer_interconvertible_with_class(&U::v2));
235232

236-
ASSERT(!is_pointer_interconvertible_with_class<NS>(&NS::a));
237-
ASSERT(!is_pointer_interconvertible_with_class<NS>(&NS::b));
238233
ASSERT(!is_pointer_interconvertible_with_class(&C::f1));
239234
ASSERT(!is_pointer_interconvertible_with_class(static_cast<int A::*>(nullptr)));
240235
}

0 commit comments

Comments
 (0)