You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When brace initializer list is used as argument, the implementation should (as-if) fallback to the non-transparent overloads. But the wrong const void& type is attempted to be formed now.
STL version
All existing versions since VS 2019 16.5 (which got WG21-P1690R1 implemented).
Additional context
BTW, MSVC STL currently accepts the following bogus program even before C++20 (Godbolt link).
#include<unordered_set>intmain()
{
std::unordered_set<int> m{1, 2, 3};
auto it = m.find<void()>(1);
return it == m.end();
}
Describe the bug
From DevCom-10819520.
The following program don't compile with MSVC STL.
Command-line test case
Godbolt link
Expected behavior
The program compiles. No "reference to cv
void
" is attempted to formed.I think this bug is due to wrong
_Deduce_key
type.STL/stl/inc/xhash
Lines 108 to 121 in 9082000
When brace initializer list is used as argument, the implementation should (as-if) fallback to the non-transparent overloads. But the wrong
const void&
type is attempted to be formed now.STL version
All existing versions since VS 2019 16.5 (which got WG21-P1690R1 implemented).
Additional context
BTW, MSVC STL currently accepts the following bogus program even before C++20 (Godbolt link).
Although this may still be conforming due to [member.functions]/2.
The text was updated successfully, but these errors were encountered: