public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/36724]  New: ICE: (character pointer targets substring)
@ 2008-07-03 23:50 loukas dot peristeras at scienomics dot com
  2008-07-04  5:59 ` [Bug fortran/36724] " burnus at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: loukas dot peristeras at scienomics dot com @ 2008-07-03 23:50 UTC (permalink / raw)
  To: gcc-bugs

The following program gives a compile time segmentation fault.

!---------------------
program testfile

  character(LEN=132), target :: line
  character(LEN=1), pointer :: t

  read(*,'(A)') line
  t=>line(1:1)
  print*, t

end
!---------------------

The problem seems to be the character pointer to the substring.

debian each info:
------------------------
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug --enable-mpfr --with-tune=i686
--enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
 /usr/lib/gcc/i486-linux-gnu/4.1.2/f951 file.f90 -quiet -dumpbase file.f90
-mtune=i686 -auxbase file -version -o file.s
GNU F95 version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) (i486-linux-gnu)
        compiled by GNU C version 4.1.2 20061115 (prerelease) (Debian
4.1.1-21).
GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=129393
file.f90:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.1/README.Bugs>.
------------------------


-- 
           Summary: ICE: (character pointer targets substring)
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: loukas dot peristeras at scienomics dot com
  GCC host triplet: i686-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36724


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-07-27 16:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-03 23:50 [Bug fortran/36724] New: ICE: (character pointer targets substring) loukas dot peristeras at scienomics dot com
2008-07-04  5:59 ` [Bug fortran/36724] " burnus at gcc dot gnu dot org
2008-07-04 19:03 ` loukas dot peristeras at scienomics dot com
2008-07-27 16:33 ` dfranke at gcc dot gnu dot org
2008-07-27 16:33 ` dfranke at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).