This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/27997] Fortran 2003: Support type-spec for array constructor
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Mar 2008 16:04:46 -0000
- Subject: [Bug fortran/27997] Fortran 2003: Support type-spec for array constructor
- References: <bug-27997-1719@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from burnus at gcc dot gnu dot org 2008-03-25 16:04 -------
Another test case, causes an ICE with another compiler, which supports the
first test case; I have not tested it with the current patch.
program test
character(15) :: a(3)
character(10), volatile :: b(3)
b(1) = 'Takata'
b(2) = 'Tanaka'
b(3) = 'Hayashi'
a = (/ character(len=7) :: trim(b(1)), trim(b(2)), trim(b(3)) /)
print '(a)',a
a = (/ character(len=2) :: trim(b(1)), trim(b(2)), trim(b(3)) /)
print '(a)',a
a = (/ character(len=8) :: trim(b(1)), trim(b(2)), trim(b(3)) /)
print '(a)',a
end program test
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27997