FlatAssembler / AECforWebAssembly

A port of ArithmeticExpressionCompiler from x86 to WebAssembly, so that the programs written in the language can run in a browser. The compiler has been rewritten from JavaScript into C++.
https://flatassembler.github.io/AEC_specification
MIT License
32 stars 2 forks source link

The compiler segfaults when generating assembly code for comparing two structures if compiled using Microsoft C++ Compiler #20

Open FlatAssembler opened 2 months ago

FlatAssembler commented 2 months ago

If compiled with Microsoft C++ Compiler, the compiler segfaults while compiling this line: https://github.com/FlatAssembler/AECforWebAssembly/blob/85e06656bf2827358792b299b2aa291e6f826da5/namedArgumentsTest.aec#L62

I haven't managed to diagnose the issue more precisely.

FlatAssembler commented 2 months ago

Here is the call stack: slika

FlatAssembler commented 2 months ago

I think the bug is probably somewhere here: https://github.com/FlatAssembler/AECforWebAssembly/blob/2373f371589677fb55a95128f5bb53b1299ac801/compiler.cpp#L1416C1-L1466C4