public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/17737] New: ICE in gfc_assign_data_value, at fortran/data.c:319
@ 2004-09-29 20:21 schnetter at aei dot mpg dot de
  2004-09-29 20:22 ` [Bug fortran/17737] " schnetter at aei dot mpg dot de
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: schnetter at aei dot mpg dot de @ 2004-09-29 20:21 UTC (permalink / raw)
  To: gcc-bugs

The attached code leads to an ICE when compiled with 
 
GNU Fortran 95 (GCC 4.0.0 20040928 (experimental)) 
 
with the options 
 
-ffixed-line-length-none -c -march=pentium4 -malign-double -g3 
 
The error message is 
 
city3s.f:0: internal compiler error: in gfc_assign_data_value, at 
fortran/data.c:319 
 
Note that the source code contains a data statement that is supposed to fill a 
character variable, and the value given is longer than the variable.

-- 
           Summary: ICE in gfc_assign_data_value, at fortran/data.c:319
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: schnetter at aei dot mpg dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug fortran/17737] ICE in gfc_assign_data_value, at fortran/data.c:319
  2004-09-29 20:21 [Bug fortran/17737] New: ICE in gfc_assign_data_value, at fortran/data.c:319 schnetter at aei dot mpg dot de
@ 2004-09-29 20:22 ` schnetter at aei dot mpg dot de
  2004-09-30 15:08 ` [Bug fortran/17737] [4.0 regression] ICE when variable appears in two data statements reichelt at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: schnetter at aei dot mpg dot de @ 2004-09-29 20:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From schnetter at aei dot mpg dot de  2004-09-29 20:22 -------
Created an attachment (id=7241)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7241&action=view)
failing source code


-- 


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


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

* [Bug fortran/17737] [4.0 regression] ICE when variable appears in two data statements
  2004-09-29 20:21 [Bug fortran/17737] New: ICE in gfc_assign_data_value, at fortran/data.c:319 schnetter at aei dot mpg dot de
  2004-09-29 20:22 ` [Bug fortran/17737] " schnetter at aei dot mpg dot de
@ 2004-09-30 15:08 ` reichelt at gcc dot gnu dot org
  2004-10-02 20:48 ` tobi at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-09-30 15:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-09-30 15:07 -------
Confirmed.

The problem is that the same variable appears in two data statements.
Just compile the following testcase without command-line parameters:

====================
	integer	i
	data i/0/
	data i/0/
	end
====================

This works with the lno branch that was merged 20040718.
So I suppose this worked on mainline then, too.
It also worked with g77, so I'm rating this as a regression.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code, monitored
      Known to fail|                            |4.0.0
      Known to work|                            |3.4.2
   Last reconfirmed|0000-00-00 00:00:00         |2004-09-30 15:07:54
               date|                            |
            Summary|ICE in                      |[4.0 regression] ICE when
                   |gfc_assign_data_value, at   |variable appears in two data
                   |fortran/data.c:319          |statements
   Target Milestone|---                         |4.0.0


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


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

* [Bug fortran/17737] [4.0 regression] ICE when variable appears in two data statements
  2004-09-29 20:21 [Bug fortran/17737] New: ICE in gfc_assign_data_value, at fortran/data.c:319 schnetter at aei dot mpg dot de
  2004-09-29 20:22 ` [Bug fortran/17737] " schnetter at aei dot mpg dot de
  2004-09-30 15:08 ` [Bug fortran/17737] [4.0 regression] ICE when variable appears in two data statements reichelt at gcc dot gnu dot org
@ 2004-10-02 20:48 ` tobi at gcc dot gnu dot org
  2004-10-02 20:48 ` tobi at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-10-02 20:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tobi at gcc dot gnu dot org  2004-10-02 20:48 -------
This is invalid code. See page 49 of the draft standard. A variable shall not
have more than one explicit initialization. DATA statements count as explicit
initialization.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-valid-code           |ice-on-invalid-code


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


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

* [Bug fortran/17737] [4.0 regression] ICE when variable appears in two data statements
  2004-09-29 20:21 [Bug fortran/17737] New: ICE in gfc_assign_data_value, at fortran/data.c:319 schnetter at aei dot mpg dot de
                   ` (2 preceding siblings ...)
  2004-10-02 20:48 ` tobi at gcc dot gnu dot org
@ 2004-10-02 20:48 ` tobi at gcc dot gnu dot org
  2004-11-11 15:34 ` [Bug fortran/17737] " pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-10-02 20:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tobi at gcc dot gnu dot org  2004-10-02 20:48 -------
(In reply to comment #3)
> This is invalid code. See page 49 of the draft standard. 
The draft fortran 95 standard.


-- 


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


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

* [Bug fortran/17737] ICE when variable appears in two data statements
  2004-09-29 20:21 [Bug fortran/17737] New: ICE in gfc_assign_data_value, at fortran/data.c:319 schnetter at aei dot mpg dot de
                   ` (3 preceding siblings ...)
  2004-10-02 20:48 ` tobi at gcc dot gnu dot org
@ 2004-11-11 15:34 ` pinskia at gcc dot gnu dot org
  2005-01-06 14:41 ` tobi at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-11 15:34 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.0 regression] ICE when   |ICE when variable appears in
                   |variable appears in two data|two data statements
                   |statements                  |
   Target Milestone|4.0.0                       |---


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


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

* [Bug fortran/17737] ICE when variable appears in two data statements
  2004-09-29 20:21 [Bug fortran/17737] New: ICE in gfc_assign_data_value, at fortran/data.c:319 schnetter at aei dot mpg dot de
                   ` (4 preceding siblings ...)
  2004-11-11 15:34 ` [Bug fortran/17737] " pinskia at gcc dot gnu dot org
@ 2005-01-06 14:41 ` tobi at gcc dot gnu dot org
  2005-09-14 19:30 ` pinskia at gcc dot gnu dot org
  2005-09-28 16:32 ` segalemb at usp dot br
  7 siblings, 0 replies; 9+ messages in thread
From: tobi at gcc dot gnu dot org @ 2005-01-06 14:41 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |19292
              nThis|                            |


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


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

* [Bug fortran/17737] ICE when variable appears in two data statements
  2004-09-29 20:21 [Bug fortran/17737] New: ICE in gfc_assign_data_value, at fortran/data.c:319 schnetter at aei dot mpg dot de
                   ` (5 preceding siblings ...)
  2005-01-06 14:41 ` tobi at gcc dot gnu dot org
@ 2005-09-14 19:30 ` pinskia at gcc dot gnu dot org
  2005-09-28 16:32 ` segalemb at usp dot br
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-14 19:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-14 19:29 -------
*** Bug 23884 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |segalemb at usp dot br


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


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

* [Bug fortran/17737] ICE when variable appears in two data statements
  2004-09-29 20:21 [Bug fortran/17737] New: ICE in gfc_assign_data_value, at fortran/data.c:319 schnetter at aei dot mpg dot de
                   ` (6 preceding siblings ...)
  2005-09-14 19:30 ` pinskia at gcc dot gnu dot org
@ 2005-09-28 16:32 ` segalemb at usp dot br
  7 siblings, 0 replies; 9+ messages in thread
From: segalemb at usp dot br @ 2005-09-28 16:32 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From segalemb at usp dot br  2005-09-28 16:32 -------
(In reply to comment #5)
> *** Bug 23884 has been marked as a duplicate of this bug. ***

Bug 23884 is not a duplicate of this bug, because there is no repeated
data statements in module.F


-- 


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


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

end of thread, other threads:[~2005-09-28 16:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-29 20:21 [Bug fortran/17737] New: ICE in gfc_assign_data_value, at fortran/data.c:319 schnetter at aei dot mpg dot de
2004-09-29 20:22 ` [Bug fortran/17737] " schnetter at aei dot mpg dot de
2004-09-30 15:08 ` [Bug fortran/17737] [4.0 regression] ICE when variable appears in two data statements reichelt at gcc dot gnu dot org
2004-10-02 20:48 ` tobi at gcc dot gnu dot org
2004-10-02 20:48 ` tobi at gcc dot gnu dot org
2004-11-11 15:34 ` [Bug fortran/17737] " pinskia at gcc dot gnu dot org
2005-01-06 14:41 ` tobi at gcc dot gnu dot org
2005-09-14 19:30 ` pinskia at gcc dot gnu dot org
2005-09-28 16:32 ` segalemb at usp dot br

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).