This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34145] single_char_string.f90 fails with -fdefault-integer-8
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jun 2010 13:38:14 -0000
- Subject: [Bug fortran/34145] single_char_string.f90 fails with -fdefault-integer-8
- References: <bug-34145-10391@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from fxcoudert at gcc dot gnu dot org 2010-06-11 13:38 -------
(In reply to comment #2)
> Still true for gcc version 4.6.0 20100509 (experimental) (GCC)
I don't know if it's worth the extra work, but this can be tackled in
gfc_conv_substring() by checking whether start.expr and end.expr refer to the
same var_decl (stripping conversions). If they do, the length is one.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34145