public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/24789]  New: [gfortran] ICE when assigning to array of strings
@ 2005-11-11  8:33 martin at mpa-garching dot mpg dot de
  2005-11-28 21:27 ` [Bug fortran/24789] " eedelman at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: martin at mpa-garching dot mpg dot de @ 2005-11-11  8:33 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2377 bytes --]

Current mainline gfortran ICEs on the following code:

subroutine foo(vals)
  character(len = *), pointer :: vals(:)

  vals = ''
end subroutine

martin@linux:~/tmp> gfortran -v test.F90
Driving: gfortran -v test.F90 -lgfortranbegin -lgfortran -lm -shared-libgcc
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: /home/martin/software/gcc/configure --quiet
--prefix=/home/martin/software/ugcc --enable-languages=c++,fortran
Thread model: posix
gcc version 4.1.0 20051111 (experimental)
 /home/martin/software/ugcc/libexec/gcc/x86_64-unknown-linux-gnu/4.1.0/cc1 -E
-lang-fortran -traditional-cpp -D_LANGUAGE_FORTRAN -quiet -v test.F90 -mtune=k8
-o /tmp/ccchY9YK.f95
ignoring nonexistent directory
"/home/martin/software/ugcc/lib/gcc/x86_64-unknown-linux-gnu/4.1.0/../../../../x86_64-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /home/martin/software/ugcc/include
 /home/martin/software/ugcc/lib/gcc/x86_64-unknown-linux-gnu/4.1.0/include
 /usr/include
End of search list.
 /home/martin/software/ugcc/libexec/gcc/x86_64-unknown-linux-gnu/4.1.0/f951
/tmp/ccchY9YK.f95 -quiet -dumpbase test.F90 -mtune=k8 -auxbase test -version -o
/tmp/ccaQr9Uk.s
GNU F95 version 4.1.0 20051111 (experimental) (x86_64-unknown-linux-gnu)
        compiled by GNU C version 4.1.0 20051111 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
test.F90: In function ‘foo’:
test.F90:4: 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.


The Fortran compiler from the GOMP branch does not ICE on this code.

This ICE may be related to PR24266, but I'm not absolutely sure, and anyway,
my testcase is shorter :)


-- 
           Summary: [gfortran] ICE when assigning to array of strings
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: martin at mpa-garching dot mpg dot de
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


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

end of thread, other threads:[~2005-12-12 20:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-11  8:33 [Bug fortran/24789] New: [gfortran] ICE when assigning to array of strings martin at mpa-garching dot mpg dot de
2005-11-28 21:27 ` [Bug fortran/24789] " eedelman at gcc dot gnu dot org
2005-11-30 19:41 ` pault at gcc dot gnu dot org
2005-12-01  6:58 ` pault at gcc dot gnu dot org
2005-12-01  7:01 ` pault at gcc dot gnu dot org
2005-12-12 20:11 ` pinskia 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).