Closed sithhell closed 6 years ago
The compiler currently transforms code like this:
namespace { const T t = {...}; }
into code like this:
namespace { const T t; } int IMP_main() { new (&t) T{...}; }
This is undefined and leads to runtime errors since t might be placed in a read only segment of the binary.
t
Fixed with insieme commit https://github.com/insieme/insieme/commit/d78fb2e4cb9f9bd81162426268a818063556a098
The compiler currently transforms code like this:
into code like this:
This is undefined and leads to runtime errors since
t
might be placed in a read only segment of the binary.