-
Notifications
You must be signed in to change notification settings - Fork 21
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
fortran-src builtin type checker doesn't report declaration type errors #144
Comments
I can't find evidence of The type error on program ty
implicit none
integer :: x, y
character(*) :: str
str = x // y
end program ty checks with no errors. My understanding is that we don't do typechecking per se. We could add another pass that uses the generated Edit: Wonder if a typecheck pass would fit better in CamFort so we can treat it as another analysis. |
Sounds like we may just need to rename this analysis in fortran-src then so it's not misleading. Adding a proper type checking pass could fit will with CamFor yes. |
See |
I was wrong -- we do check for issues such as calling non-functions and bad array indexing. It doesn't extend to full consistency/mismatch checking.
|
Consider:
The
-t
pass doesn't report anything fishy but I think it should (if would complain if I didx = 42 + "Hello"
though. Why it this? Is this a case of a mismatch between user expectations and what is going on internally?The text was updated successfully, but these errors were encountered: