Hacker News new | past | comments | ask | show | jobs | submit login

If you use a pointer that’s been realloc’d, then I would not be surprised at all if gcc simply deletes the call to realloc.



I would be surprised in the general case. Realloc does have side effects and the size parameter can be known at runtime only, etc.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: