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
Indeed, stack alloc assumes that every function argument is a variable, and badly fails otherwise. During typing, we reject most programs where it is not the case (r = f(42) is rejected, for instance), but with inline it is possible to pass typing and reach stack alloc with an argument that is not a variable.
I don't know what the proper fix is. Having stack alloc emit a nicer error is easy to do, while detecting this problem during typing seems hard, so I'd fix stack alloc. What do you think?
Compiling the following program triggers an unfathomable internal error:
Reported by @cos-imo.
The text was updated successfully, but these errors were encountered: