Closed
Description
The following code is a reduction of a c++20 module application that crashes.
The easiest way to reproduce the crash is by using ASAN.
When the application terminates, it gives a double-free error.
data.cppm
module;
#include <string>
export module data;
export std::string global;
main.cpp
import data;
int main() { global = "A long string that does not fit in the SSO buffer"; }