--- Comment #9 from jvdelisle at gcc dot gnu dot org 2010-04-17 14:57
---
No longer ICE, closing. The warning is adequate for this situation.
--
jvdelisle at gcc dot gnu dot org changed:
What|Removed |Added
---
--- Comment #8 from dominiq at lps dot ens dot fr 2010-03-30 17:24 ---
I get the ICE with 4.4.2 (intel/ppc), 4.3.4, and 4.2.4 (ppc), but not on
trunk.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38568
--- Comment #7 from burnus at gcc dot gnu dot org 2010-03-30 17:12 ---
Hmm, currently, I cannot reproduce it - not even with valgrind; I tried:
gfortran 4.1, 4.2, 4.3, 4.4, 4.5 - and various older trunk versions
(2008-12-18, 2008-12-05,2009-01-05, 2009-02-05, 2009-05-05, 2009-08-05) - bu
--- Comment #6 from dominiq at lps dot ens dot fr 2010-03-30 16:48 ---
I do not get any ICE with the different 4.5 versions I have tried (oldest is
r156618). Could someone check that?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38568
--- Comment #5 from jvdelisle at gcc dot gnu dot org 2009-03-29 18:13
---
With -Werror, the segfault goes away.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38568
--- Comment #4 from burnus at gcc dot gnu dot org 2009-03-29 17:46 ---
> This should be an error rather than a warning?
Good question. I could imagine some legacy code which does:
character(len=5) :: str(5)
print *, str(1)(1:10)
or something similar in spirit. (I cannot come up with
--- Comment #3 from jvdelisle at gcc dot gnu dot org 2009-03-29 14:48
---
This should be an error rather than a warning?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38568
--- Comment #2 from fxcoudert at gcc dot gnu dot org 2009-03-29 08:35
---
The testcase segfaults for me on current trunk on x86_64-linux, this is what
gdb says:
a.f90:3.14:
WRITE(*, FMT(1:9) ) ! Invalid 1:9 is regarded as array bounds not at
substring
1
Warning: Upper
--- Comment #1 from mikael at gcc dot gnu dot org 2008-12-26 21:46 ---
it works for me at revision 142908
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38568