jupyter-xeus / xeus-cling

Jupyter kernel for the C++ programming language
BSD 3-Clause "New" or "Revised" License
3.08k stars 297 forks source link

Unconditional kernel crash when unpacking pair #509

Open JoelSjogren opened 9 months ago

JoelSjogren commented 9 months ago

This works as intended:

#include <utility>
#include <iostream>
std::pair<int, int> p = { 4, 8 };
{
auto [a, b] = p;
std::cout << a << std::endl;
}

This causes the kernel to crash:

#include <utility>
#include <iostream>
std::pair<int, int> p = { 4, 8 };
auto [a, b] = p;
std::cout << a << std::endl;

Kernel Restarting The kernel for [...] appears to have died. It will restart automatically.