-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
pass "nopass" for class procedure having nopass and handle optional arguments for ClassProcedure with/without nopass #3711
Conversation
c392342
to
f307305
Compare
Can you try updating test references and see if CI passes. |
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.
Looks good, let's get CI working, dropped comments to improve test.
I think it was a failure similar to the one mentioned in this issue: #3707. I've pushed a commit, hopefully the tests pass now. |
If you do like the changes, and accept it, I would request for it to be a squash the commits when merging. |
I am just not sure of these |
Sounds good. |
integration_tests/CMakeLists.txt
Outdated
@@ -1476,3 +1476,4 @@ RUN(NAME types_real_to_complex_cast LABELS gfortran llvm) | |||
RUN(NAME types_real_array_to_complex_array_cast LABELS gfortran llvm) | |||
|
|||
RUN(NAME lbound_01 LABELS gfortran llvm) | |||
RUN(NAME module_function_with_nopass gfortran) |
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.
It's now tested with GFortran.
f4f8932
to
a1401d5
Compare
@certik , this is now ready for a review. I've made more changes after your last review. We should now be able to compile the test case completely (not just till ASR), and it's tested as well (I've used
Update: The issue #3632 is also now handled in this PR. |
This PR now also fixes #3632 |
@certik , could you help me understand why the two CI checks are failing? |
CI failure: [ 19%] Building Fortran object CMakeFiles/print_03_FAST.dir/print_03.f90.o
[ 23%] Building Fortran object CMakeFiles/print_05_FAST.dir/print_05.f90.o
make[2]: *** [CMakeFiles/module_function_with_nopass_FAST.dir/module_function_with_nopass.f90.o] Segmentation fault: 11
[ 26%] Linking Fortran executable error_stop_02_FAST
make[1]: *** [CMakeFiles/module_function_with_nopass_FAST.dir/all] Error 2
[ 30%] Linking Fortran executable error_stop_01_FAST
make[1]: *** Waiting for unfinished jobs....
[ 34%] Linking Fortran executable print_01_FAST
[ 38%] Linking Fortran executable stop_01_FAST
[ 42%] Linking Fortran executable print_03_FAST
make: *** [all] Error 2 |
Ah, I see. I did see the error ofcourse, but I didn't know that you can simply run that locally by |
Related #3733. |
The CI failure seems unrelated: #3736. |
Yes, |
Can we squash the commits when merging? (If you also think that makes more sense) |
As otherwise, they would introduce un-necessary reference files in our commit history. |
pass "nopass" presence along to be used by CallBody
…dure with "nopass"
e9a6a3f
to
0bb42e9
Compare
Tests pass on a rerun. I rebased and auto-squash-merged. |
pass "nopass" presence along to be used by CallBody
I've written the (only) test case with just
--show-asr
, as the--show-llvm
will still raise an error because of a problem intransform_optional_argument_function
pass (for details, see: #3632)