-
-
Notifications
You must be signed in to change notification settings - Fork 262
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
This example on cppinsights.io:
#include <map>
int main()
{
std::map<int, int> map{{1, 2}};
auto [key, value] = *map.begin();
}
apparently desugars to
#include <map>
int main()
{
std::map<int, int> map{ std::initializer_list<std::pair<const int, int> >{ std::pair<const int, int>(1, 2) } };
std::pair<const int, int> __operator6 = std::pair<const int, int>(map.begin().operator*());
std::tuple_element<0, std::pair<const int, int> >::type&& key = std::get<0ul>(__operator6);
std::tuple_element<1, std::pair<const int, int> >::type&& value = std::get<1ul>(__opemap.begin().operator*()
}But __opemap.begin().operator*() should presumably be __operator6)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working