You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I run make, then excute command ./compl ./demo.c.
Output displays Segmentation fault.
I guess some bugs in in function binexpr() of file expr.c.
// Ensure the right's type matches the leftright=modify_type(right, left->type, 0);
if (left==NULL) // <- bugfatal("Incompatible expression in assignment");
correct it if (right == NULL), and then the program run correctly.
The text was updated successfully, but these errors were encountered:
The same issue shows up in 18..16, fixed (as suggested) in 27. The attached git patch (renamed as GH doesn't like .patch) applies the fix to the missing files. 0001-Fix-issue-26-in-18.26.txt
My test file demo.c are as follow.
I run make, then excute command
./compl ./demo.c
.Output displays Segmentation fault.
I guess some bugs in in function binexpr() of file expr.c.
correct it
if (right == NULL)
, and then the program run correctly.The text was updated successfully, but these errors were encountered: