This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33727] Segfault with ugly string array constructor
- From: "dominiq at lps dot ens dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Oct 2007 14:38:15 -0000
- Subject: [Bug fortran/33727] Segfault with ugly string array constructor
- References: <bug-33727-8513@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from dominiq at lps dot ens dot fr 2007-10-10 14:38 -------
Note that the (IMHO) valid code:
program array_char
implicit none
character (len=2) :: x, y
character (len=2) :: z(2)
x = "a "
y = "cd"
z = (/y(1:len(trim(x))), x(1:len(trim(x)))/) ! causes segfault
print *, z
end program array_char
gives also the same ICE:
[address=43248000 pc=430c1a90]
pr33727_db.f90: In function 'MAIN__':
pr33727_db.f90:6: internal compiler error: Segmentation Fault
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33727