Closed UnixJunkie closed 9 years ago
We crash on this line of memcad's transform.ml:
| { d = FieldDecl { fd_type = ty;
fd_name = name;
fd_bitw = bitwidth;
fd_init = init;
fd_index } } :: tl ->
Printf.printf "case 3\n%!";
if bitwidth <> None then Log.unimp "Bit fields not implemented";
The comparison with None gives a Segmentation fault of the ocaml program.
Finally, the logger is broken. Hence, I will just replace it by dolog.
done
The following code is enough to crash the frontend: