This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/27998] character arrays: warn if erray constructor values have different lengths
- From: "paul dot richard dot thomas at cea dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jun 2006 06:33:27 -0000
- Subject: [Bug fortran/27998] character arrays: warn if erray constructor values have different lengths
- References: <bug-27998-1719@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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