Author |
Message |
Topic: Incorrect detection of Missing Optional argument |
davidb
Replies: 2
Views: 2264
|
Forum: Support Posted: Sat Jan 29, 2022 2:41 pm Subject: Incorrect detection of Missing Optional argument |
When compiled with /checkmate turned on (version 8.80), the following code gives a run-time error. "Reference through missing OPTIONAL argument".
(It worked fine with 8.70)
However, th ... |
Topic: Compiler error with /ISO |
davidb
Replies: 2
Views: 2631
|
Forum: Support Posted: Wed Dec 30, 2020 7:24 pm Subject: |
This test case is working now in 8.70.
Thanks Paul. |
Topic: Compiler error with /ISO |
davidb
Replies: 2
Views: 2631
|
Forum: Support Posted: Mon Nov 09, 2020 11:00 am Subject: Compiler error with /ISO |
The following code will not compile with versions 8.61 or 8.66 when /ISO is used.
This is a short demonstration, extracted from a larger code where /ISO is required to ensure that SIZE returns a de ... |
Topic: Floor hangs with 64 bit values |
davidb
Replies: 4
Views: 6286
|
Forum: General Posted: Sun Jul 21, 2019 7:07 pm Subject: |
It looks like overflow is occurring with the argument to floor.
You have to be careful that the argument to floor is not outside the range of the largest default integer or the largest integer of a ... |
Topic: Bug with pointer components of derived type. |
davidb
Replies: 14
Views: 13727
|
Forum: Support Posted: Sun Jul 07, 2019 6:05 pm Subject: |
Thanks Paul, your work on this is much appreciated. |
Topic: Internal WRITE error goes undetected |
davidb
Replies: 3
Views: 3865
|
Forum: Support Posted: Sun Jul 07, 2019 5:54 pm Subject: |
I agree this would be a useful additional run-time check. Though it is the programmer's responsibility to check such things.
The NAG and gfortran compilers also detect the error with the (I4) forma ... |
Topic: How to count function "CALL" ? |
davidb
Replies: 7
Views: 6813
|
Forum: General Posted: Thu Jan 24, 2019 11:56 pm Subject: |
You can over-ride the function and count the calls using something like the following:
function sin(x)
real, intent(in) :: x
real sin
integer n
common /sin ... |
Topic: Extracting part of code from the large source |
davidb
Replies: 9
Views: 8311
|
Forum: General Posted: Mon Apr 30, 2018 6:02 pm Subject: |
It is possible to write tests as separate subroutines. With the right software (I use a python script that "understands" Fortran) you can automatically generate Fortran source code for a pr ... |
Topic: Stack Size |
davidb
Replies: 24
Views: 21303
|
Forum: 64-bit Posted: Fri Apr 27, 2018 10:48 am Subject: Re: |
See https://msdn.microsoft.com/en-us/library/windows/desktop/ms686774(v=vs.85).aspx regarding threads and stacks. Note the comments in the second paragraph regarding keeping stacks modest in size.
... |
Topic: Stack Size |
davidb
Replies: 24
Views: 21303
|
Forum: 64-bit Posted: Fri Apr 27, 2018 10:39 am Subject: |
A well written program that confirms fully with the standard should be correct whether local variables are placed on the stack or in code space. In fact the Fortran standard does say anything about wh ... |
Topic: Stack Size |
davidb
Replies: 24
Views: 21303
|
Forum: 64-bit Posted: Thu Apr 26, 2018 11:52 am Subject: |
When a local variable is declared it is usually put on the current stack frame.
You can use SAVE to over-ride this, or the use SAVE attribute for specific variables. If you don't want to change th ... |
Topic: Associated() failing with 64 bit compiler |
davidb
Replies: 3
Views: 4798
|
Forum: Support Posted: Tue Apr 24, 2018 8:47 am Subject: Associated() failing with 64 bit compiler |
In the following code the associated() intrinsic incorrectly returns .TRUE. causing a run-time error when the deallocate statement is executed.
Since => null() initialisation is used the initial ... |
Topic: Can't assign to intent(out) automatic array element. |
davidb
Replies: 2
Views: 4306
|
Forum: Support Posted: Tue Apr 24, 2018 8:39 am Subject: Re: |
Thanks. The same fix as before also applies to this code.
In v7.2, runtime checking was not applied when passing array sections as arguments. Runtime checking of array sections was added and worked ... |
Topic: Can't assign to intent(out) automatic array element. |
davidb
Replies: 2
Views: 4306
|
Forum: Support Posted: Tue Apr 24, 2018 8:02 am Subject: Can't assign to intent(out) automatic array element. |
This bug is similar to the issue with passing automatic arrays on the other thread. A run-time error occurs on the line nn = n when /CHECKMATE or /CHECK is used with the 32 bit compiler. (v 8.3).
... |
Topic: /ISO and /SIZE_ISO |
davidb
Replies: 8
Views: 7573
|
Forum: Support Posted: Tue Apr 24, 2018 6:53 am Subject: Re: |
I find this thread very annoying.
As someone who uses SIZE with /64, I don't want an intrinsic that returns integer overflow. I want SIZE to return useful information.
How about catering to us u ... |
|