[Bug fortran/27998] character arrays: warn if erray constructor values have different lengths

paul dot richard dot thomas at cea dot fr gcc-bugzilla@gcc.gnu.org
Thu Jun 15 06:35:00 GMT 2006



------- Comment #1 from paul dot richard dot thomas at cea dot fr  2006-06-15 06:33 -------
(In reply to comment #0)
According to section 4.5 of the Fortran95 standard:

"If the ac-value expressions are of type character, each ac-value expression in
the array-constructor shall have the same character length parameter."

.....so, an error is definitely in order.

Paul


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27998



More information about the Gcc-bugs mailing list