public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/25312]  New: error in indexes in data assignment
@ 2005-12-08 17:23 segalemb at usp dot br
  2005-12-08 17:26 ` [Bug fortran/25312] " segalemb at usp dot br
  2005-12-08 17:49 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: segalemb at usp dot br @ 2005-12-08 17:23 UTC (permalink / raw)
  To: gcc-bugs

Hello,

 When I try to compile the code:

==================================================================================
     module param
      double precision mutdefc(8,5)
      data mutdefc(1,1)/0.0000D0/
      data mutdefc(1,1)/0.0000D0/
      end module param
================================================================================

witth the same indexes in both assignments of mutdefc, the compliler presents
an internal error:

===============================================================================
Driving: gfortran40 -v -g -save-temps a.F -lgfortranbegin -lgfortran -lm
Using built-in specs.
Target: i386-portbld-freebsd5.4
Configured with: ./..//gcc-4.0-20050728/configure --disable-nls
--with-system-zlib --with-libiconv-prefix=/usr/local --program-suffix=40
--libdir=/usr/local/lib/gcc/i386-portbld-freebsd5.4/4.0.2
--with-gxx-include-dir=/usr/local/lib/gcc/i386-portbld-freebsd5.4/4.0.2/include/c++/
--with-gmp=/usr/local --disable-shared --prefix=/usr/local
i386-portbld-freebsd5.4
Thread model: posix
gcc version 4.0.2 20050728 (prerelease) [FreeBSD]
 /usr/local/libexec/gcc/i386-portbld-freebsd5.4/4.0.2/cc1 -E -traditional-cpp
-D_LANGUAGE_FORTRAN -quiet -v a.F -fworking-directory -fpch-preprocess -o a.f
ignoring nonexistent directory
"/usr/local/lib/gcc/i386-portbld-freebsd5.4/4.0.2/gcc/i386-portbld-freebsd5.4/4.0.2/../../../../i386-portbld-freebsd5.4/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include

/usr/local/lib/gcc/i386-portbld-freebsd5.4/4.0.2/gcc/i386-portbld-freebsd5.4/4.0.2/include
 /usr/include
End of search list.
 /usr/local/libexec/gcc/i386-portbld-freebsd5.4/4.0.2/f951 a.f -ffixed-form
-quiet -dumpbase a.F -auxbase a -g -version -o a.s
GNU F95 version 4.0.2 20050728 (prerelease) [FreeBSD] (i386-portbld-freebsd5.4)
        compiled by GNU C version 4.0.2 20050728 (prerelease) [FreeBSD].
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
a.f:0: internal compiler error: in gfc_assign_data_value, at fortran/data.c:319
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

===============================================================================

but, whwn I change the indexes of mutdefc, as mutdefc(1,1) and mutdefc(1,2) the 
executable is generated.

     Thank you very much,

                    Sergio


-- 
           Summary: error in indexes in data assignment
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: segalemb at usp dot br


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


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

* [Bug fortran/25312] error in indexes in data assignment
  2005-12-08 17:23 [Bug fortran/25312] New: error in indexes in data assignment segalemb at usp dot br
@ 2005-12-08 17:26 ` segalemb at usp dot br
  2005-12-08 17:49 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: segalemb at usp dot br @ 2005-12-08 17:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from segalemb at usp dot br  2005-12-08 17:26 -------
Created an attachment (id=10442)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10442&action=view)
a.s


-- 


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


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

* [Bug fortran/25312] error in indexes in data assignment
  2005-12-08 17:23 [Bug fortran/25312] New: error in indexes in data assignment segalemb at usp dot br
  2005-12-08 17:26 ` [Bug fortran/25312] " segalemb at usp dot br
@ 2005-12-08 17:49 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-12-08 17:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2005-12-08 17:49 -------
Fixed in 4.0.3 by allowing this without -pedantic-errors.

This is a dup of bug 17737.

*** This bug has been marked as a duplicate of 17737 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE
   Target Milestone|---                         |4.1.0


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


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

end of thread, other threads:[~2005-12-08 17:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-08 17:23 [Bug fortran/25312] New: error in indexes in data assignment segalemb at usp dot br
2005-12-08 17:26 ` [Bug fortran/25312] " segalemb at usp dot br
2005-12-08 17:49 ` 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).