 |
forums.silverfrost.com Welcome to the Silverfrost forums
|
View previous topic :: View next topic |
Author |
Message |
davidb
Joined: 17 Jul 2009 Posts: 560 Location: UK
|
Posted: Tue Nov 20, 2012 6:26 pm Post subject: Shape intrinsic with parameter attribute |
|
|
The compiler gives an error in the following code. But the declaration of variable b is valid Fortran 90 syntax.
Code: |
program anon
integer :: i, j, prototype(2,2)
integer, parameter, dimension(2,2) :: a = reshape((/1, 2, 3, 4/), (/2,2/))
integer, parameter, dimension(2,2) :: b = reshape((/1, 2, 3, 4/), shape(prototype))
do i=1, 2
print *, (a(i,j), j=1,2)
end do
do i=1, 2
print *, (b(i,j), j=1,2)
end do
end program anon
|
_________________ Programmer in: Fortran 77/95/2003/2008, C, C++ (& OpenMP), java, Python, Perl |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8211 Location: Salford, UK
|
Posted: Wed Nov 21, 2012 9:49 am Post subject: |
|
|
I have logged this for investigation. |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8211 Location: Salford, UK
|
Posted: Tue Apr 02, 2013 4:15 pm Post subject: |
|
|
I have had a look at this and it looks like the functionality is missing rather than there being code that can be fixed.
I will leave it on the list of things to do but with a low priority because of the amount of work involved. |
|
Back to top |
|
 |
davidb
Joined: 17 Jul 2009 Posts: 560 Location: UK
|
Posted: Tue Apr 02, 2013 4:56 pm Post subject: |
|
|
OK Thanks. _________________ Programmer in: Fortran 77/95/2003/2008, C, C++ (& OpenMP), java, Python, Perl |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8211 Location: Salford, UK
|
Posted: Mon Feb 09, 2015 7:25 pm Post subject: |
|
|
This has now been fixed for the next release. |
|
Back to top |
|
 |
davidb
Joined: 17 Jul 2009 Posts: 560 Location: UK
|
Posted: Fri Feb 13, 2015 7:23 pm Post subject: |
|
|
Thank you. _________________ Programmer in: Fortran 77/95/2003/2008, C, C++ (& OpenMP), java, Python, Perl |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|