This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Constraint violation
- From: Thomas Koenig <tkoenig at netcologne dot de>
- To: sgk at troutmask dot apl dot washington dot edu, fortran at gcc dot gnu dot org
- Date: Sat, 25 Nov 2017 14:51:21 +0100
- Subject: Re: Constraint violation
- Authentication-results: sourceware.org; auth=none
- References: <20171125073607.GA36068@troutmask.apl.washington.edu>
Hi Steve,
It seems that gfortran has been violating a constraint, which has
been in the Fortran standard since at least F95.
! Constraint: The optional comma in a length-selector is permitted only if
! no double colon separator appears in the type-declaration-stmt.
On the otherhand, gfortran seem to have never gotten the second
constraint correct.
program foo
character*2, parameter :: c(2) = ['ab', 'cd']
print *, c
end program foo
I'm afraid you're going to have to help me out on this one.
What is the length-selector here, and what is the optinal
comma?
Regards
Thomas