rui314 / 8cc

A Small C Compiler
MIT License
6.13k stars 740 forks source link

segfault #36

Open andrewchambers opened 9 years ago

andrewchambers commented 9 years ago

Put this in test.c

long long a = 0LLU;

run 8cc -S ./test.c. -> segfault.

andrewchambers commented 9 years ago

This is basically the same as #27 I think (My fix wasn't general enough because the bug was somewhere else). The code generator changes may resolve this automatically.

nickzuck commented 9 years ago

Hey there can you please give the link to the file of which you are talking about

andrewchambers commented 9 years ago

What file? the contents of the file are what I showed. Simply that single line.

nickzuck commented 9 years ago

"What file? the contents of /the file / are what I showed. Simply that single line."

According to your answer ...the file in the /* */ ......The file which you are talking about