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: 30 Jun 2006 12:40:14 -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 #3 from paul dot richard dot thomas at cea dot fr 2006-06-30 12:40 -------
Created an attachment (id=11784)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11784&action=view)
The beginnings of a fix for the PR
Thee attached is simple, only gives warnings but is way too verbose, as the
following demonstrates:
program test
character(10) :: a(3)
character(10) :: b(3)= (/ 'Takata ', 'Tanaka', 'Hayashi' /)
character(4) :: c = "abcde"
a = (/ 'Takata', 'Tanaka ', 'Hayashi' /)
a = (/ 'Takata ', 'Tanaka ', 'Hayashi' /)
b = "abc"
c = "abcdefg"
end program test
More work needed!
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27998