DefinitelyNotAGirl / c-2

0 stars 0 forks source link

major function call issue #13

Closed DefinitelyNotAGirl closed 6 months ago

DefinitelyNotAGirl commented 6 months ago

when writing code such as void main(): char* HW = "Hello world"; out << HW << endl; the char* HW will be overwritten when arguments are moved to prepare for the call to operator<<, this causes the obvious issues of faulty data, which in this example would cause a segmentation fault.

DefinitelyNotAGirl commented 6 months ago

fixed as of https://github.com/DefinitelyNotAGirl/c-2/commit/65abec59ec136728b350eb84e7c9ff59aa9ebca1