-
-
Notifications
You must be signed in to change notification settings - Fork 239
fix:: throw error when passing incompatible arguments to subroutines #8722
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
Conversation
| std::string param_type_str = ASRUtils::type_to_str_fortran_expr(param_type, nullptr); | ||
| diag.add(diag::Diagnostic( | ||
| "Type mismatch in argument `" + std::string(v->m_name) + | ||
| ": expected `" + param_type_str + "` but got `" +passed_type_str + "`", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ": expected `" + param_type_str + "` but got `" +passed_type_str + "`", | |
| "`: expected `" + param_type_str + "` but got `" +passed_type_str + "`", |
|
The error is due to unable to access 'https://github.com/jinangshah21/fortran-shlex.git/': Could not resolve host: github.com Although it's second time this same error has occurred here |
src/libasr/codegen/asr_to_llvm.cpp
Outdated
|
|
||
| void handle_print(ASR::expr_t* arg, ASR::expr_t* end_expr) | ||
| { | ||
| std::printf("Inside print Arg Typ %d Enf Expr Type %d \n", arg->type, (end_expr != nullptr) ? end_expr->type : -1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be here. You can notice by the huge change in reference tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh! Extremely sorry for the troubles.
|
Thanks! |
Fixes #8719 addressing comments of #8720
Added Test-Case:
Updated Main:
Gfortran: