https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89477

--- Comment #1 from Arthur O'Dwyer <arthur.j.odwyer at gmail dot com> ---
Similar cases for `unordered_{multi,}set` as well.

// https://godbolt.org/z/onYid6
#include <unordered_set>
int main() {
    const int arr[] = { 1, 2, 3 };
    std::unordered_set s(arr, arr+3, 42, std::hash<int>(),
std::allocator<int>());
    std::unordered_set t({ 1, 2, 3 }, 42, std::allocator<int>());
}

Reply via email to