This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: LOGICAL intrinsic seems to be broken


On Sun, Nov 12, 2017 at 10:48:26AM -0800, Steve Kargl wrote:
> I believe the error message generated by gfortran is 
> incorrect for this code.
> 
>   do i = 1, k
>      write(*,*) logical(.true., j(i)), logical_kinds(i)
>   end do

Argh.  Miss read the F2008 standard.  kind argument
must be an integer constant expression.  Although the
array j is declared as a named constant, j(i) is not
a constant expression.

More coffee is clearly needed.

-- 
Steve
20170425 https://www.youtube.com/watch?v=VWUpyCsUKR4
20161221 https://www.youtube.com/watch?v=IbCHE-hONow


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]