Closed Dandigit closed 5 years ago
Currently, when c2c is given this invalid C2 code:
module module;
...and asked to print the AST by providing the -a0 flag:
-a0
c2c -f file.c2 -a0
...the error is correctly reported, but when c2c tries to print the AST, it results in a segfault:
module module; ^ ---- AST (module=) /home/dan/invalid.c2 ---- Segmentation fault (core dumped)
I'm on Ubuntu 18.04.1 LTS.
I've provided a quick fix in #96.
indeed, merged the fix! Thx
Currently, when c2c is given this invalid C2 code:
...and asked to print the AST by providing the
-a0
flag:...the error is correctly reported, but when c2c tries to print the AST, it results in a segfault:
I'm on Ubuntu 18.04.1 LTS.