1 // { dg-do compile { target c++20 } }
3 // Bug libstdc++/111511 - Incorrect ADL in std::to_array in GCC 11/12/13
4 // Bug c++/111512 - GCC's __builtin_memcpy can trigger ADL
13 T t
; // { dg-bogus "'holder<T>::t' has incomplete type" }
16 // A complete type that cannot be used as an associated type for ADL.
17 using adl_bomb
= holder
<incomplete
>*;
22 (void) std::to_array(a
);
23 (void) std::to_array(std::move(a
));