-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Addition of %tcinline
may hang compilation
#2995
Comments
I tested these four examples:
the first one doesn't hang compilation. Other three examples hangs compilation.
The third and fourth examples compile without problem. But the second examples still hangs compilation. |
I made a fix of it. A pull request is opened: #3257 |
Steps to Reproduce
Consider the following seemingly equivalent definitions:
Now, add
%tcinline
to each definition.Expected Behavior
The same behaviour on both definitions, either successful typechecking (preferrable), or some meaningful error.
Observed Behavior
Addition of
%tcinline
to the first function typechecks, addition to the second function hangs the compiler taking up all available memory.Simplified examples also show the same hanging behaviour:
I suspect that the first function typechecks due to #2737, but this is no more than a guess.
The text was updated successfully, but these errors were encountered: