Hacker News new | ask | show | jobs
by kev009 5278 days ago
Is that not the essence of undefined behavior?
1 comments

You're right, but would alloca(0) be undefined behavior or simply implementation-specific behavior? I think the latter would make more sense, and if so then alloca(0)'s behavior should at least be consistent and not depend on any optimization settings.