Skip to content

Commit 62b5746

Browse files
committed
feat(intrinsic_array_m): support assumed-rank
This commit removes preprocessor macros that were designed to work around the NAG compiler's previous lack of supprot for unlimited polymorphic, assumed-rank dummy arguments. Without the macros, all tests now pass with the NAG Fortran Compiler Release 7.1(Hanzomon) Build 7119.
1 parent 891eefa commit 62b5746

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,7 @@ module intrinsic_array_m
3535

3636
pure module function construct(array) result(intrinsic_array)
3737
implicit none
38-
#ifndef NAGFOR
3938
class(*), intent(in) :: array(..)
40-
#else
41-
class(*), intent(in) :: array(:)
42-
#endif
4339
type(intrinsic_array_t) intrinsic_array
4440
end function
4541

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
55

66
module procedure construct
77

8-
#ifndef NAGFOR
98
select rank(array)
109
rank(1)
11-
#endif
1210
select type(array)
1311
type is(complex)
1412
allocate(intrinsic_array%complex_1D, source = array)
@@ -23,7 +21,6 @@
2321
class default
2422
error stop "intrinsic_array_t construct: unsupported rank-2 type"
2523
end select
26-
#ifndef NAGFOR
2724
rank(2)
2825
select type(array)
2926
type is(complex)
@@ -59,7 +56,6 @@
5956
rank default
6057
error stop "intrinsic_array_t construct: unsupported rank"
6158
end select
62-
#endif
6359

6460
end procedure
6561

0 commit comments

Comments
 (0)