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: Constraint violation


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


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