public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/27897] New: ICE on common block with the same name as the program.
@ 2006-06-05 9:24 iguchi at coral dot t dot u-tokyo dot ac dot jp
2006-06-05 20:57 ` [Bug fortran/27897] " pault at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: iguchi at coral dot t dot u-tokyo dot ac dot jp @ 2006-06-05 9:24 UTC (permalink / raw)
To: gcc-bugs
In the following program, internal compiler error occurs.
$ gfortran -v
Using built-in specs.
Target: powerpc-apple-darwin7.9.0
Configured with: ../gcc/configure --prefix=/usr/local/gfortran
--enable-languages=c,fortran --with-gmp=/tmp/gfortran-20060512/gfortran_libs
--enable-bootstrap
Thread model: posix
gcc version 4.2.0 20060512 (experimental)
$ cat ice.f90
program i
common /i/ x
end program
$ gfortran ice.f90
ice.f90:0: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
--
Summary: ICE on common block with the same name as the program.
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: iguchi at coral dot t dot u-tokyo dot ac dot jp
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27897
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/27897] ICE on common block with the same name as the program.
2006-06-05 9:24 [Bug fortran/27897] New: ICE on common block with the same name as the program iguchi at coral dot t dot u-tokyo dot ac dot jp
@ 2006-06-05 20:57 ` pault at gcc dot gnu dot org
2006-06-05 21:21 ` pault at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-06-05 20:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pault at gcc dot gnu dot org 2006-06-05 20:50 -------
Iguchi-san,
> ice.f90:0: internal compiler error: Bus error
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://gcc.gnu.org/bugs.html> for instructions.
>
I get
[prt@localhost prs]# /svn-4.2/bin/gfortran pr27897.f90
In file pr27897.f90:2
common /i/ x
1
Error: Symbol '�!z �!z ' at (1) is already an external
symbol that is not COMMON
... so it is trying to do the right thing but the symbol name is wrong.
Thank you for the report - I hope that you can refrain from giving your main
program and common blocks the same name for a while!
Paul
--
pault at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-06-05 20:50:51
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27897
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/27897] ICE on common block with the same name as the program.
2006-06-05 9:24 [Bug fortran/27897] New: ICE on common block with the same name as the program iguchi at coral dot t dot u-tokyo dot ac dot jp
2006-06-05 20:57 ` [Bug fortran/27897] " pault at gcc dot gnu dot org
@ 2006-06-05 21:21 ` pault at gcc dot gnu dot org
2006-06-06 4:21 ` pault at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-06-05 21:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pault at gcc dot gnu dot org 2006-06-05 21:18 -------
Iguchi-san,
The error is at line 2296 of match.c; a sym->name is used, where sym is not yet
defined. It should just be the parsed name, "name".
I wil submit a patch in the next day or so (I am trying to get a backlog out of
the door.).
Thanks again
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27897
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/27897] ICE on common block with the same name as the program.
2006-06-05 9:24 [Bug fortran/27897] New: ICE on common block with the same name as the program iguchi at coral dot t dot u-tokyo dot ac dot jp
2006-06-05 20:57 ` [Bug fortran/27897] " pault at gcc dot gnu dot org
2006-06-05 21:21 ` pault at gcc dot gnu dot org
@ 2006-06-06 4:21 ` pault at gcc dot gnu dot org
2006-06-06 4:23 ` pault at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-06-06 4:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pault at gcc dot gnu dot org 2006-06-06 04:15 -------
Subject: Bug 27897
Author: pault
Date: Tue Jun 6 04:15:17 2006
New Revision: 114422
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114422
Log:
2006-06-06 Paul Thomas <pault@gcc.gnu.org>
PR fortran/27897
* match.c (gfc_match_common): Fix code typo. Remove
sym->name, since sym is NULL, and replace with name.
* fortran/ChangeLog : Fix typo: 20838 to 20839.
* testsuite/ChangeLog : The same.
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/match.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27897
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/27897] ICE on common block with the same name as the program.
2006-06-05 9:24 [Bug fortran/27897] New: ICE on common block with the same name as the program iguchi at coral dot t dot u-tokyo dot ac dot jp
` (2 preceding siblings ...)
2006-06-06 4:21 ` pault at gcc dot gnu dot org
@ 2006-06-06 4:23 ` pault at gcc dot gnu dot org
2006-06-06 4:28 ` pault at gcc dot gnu dot org
2006-06-09 7:38 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-06-06 4:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pault at gcc dot gnu dot org 2006-06-06 04:23 -------
Fixed on trunk and 4.1.
Thanks
Paul
--
pault at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27897
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/27897] ICE on common block with the same name as the program.
2006-06-05 9:24 [Bug fortran/27897] New: ICE on common block with the same name as the program iguchi at coral dot t dot u-tokyo dot ac dot jp
` (3 preceding siblings ...)
2006-06-06 4:23 ` pault at gcc dot gnu dot org
@ 2006-06-06 4:28 ` pault at gcc dot gnu dot org
2006-06-09 7:38 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-06-06 4:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pault at gcc dot gnu dot org 2006-06-06 04:23 -------
Subject: Bug 27897
Author: pault
Date: Tue Jun 6 04:23:16 2006
New Revision: 114423
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114423
Log:
2006-06-06 Paul Thomas <pault@gcc.gnu.org>
PR fortran/27897
* match.c (gfc_match_common): Fix code typo. Remove
sym->name, since sym is NULL, and replace with name.
* fortran/ChangeLog : Fix typo: 20838 to 20839.
* testsuite/ChangeLog : The same.
Modified:
branches/gcc-4_1-branch/gcc/fortran/ChangeLog
branches/gcc-4_1-branch/gcc/fortran/match.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27897
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/27897] ICE on common block with the same name as the program.
2006-06-05 9:24 [Bug fortran/27897] New: ICE on common block with the same name as the program iguchi at coral dot t dot u-tokyo dot ac dot jp
` (4 preceding siblings ...)
2006-06-06 4:28 ` pault at gcc dot gnu dot org
@ 2006-06-09 7:38 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-06-09 7:38 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.1.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27897
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-06-09 7:34 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-05 9:24 [Bug fortran/27897] New: ICE on common block with the same name as the program iguchi at coral dot t dot u-tokyo dot ac dot jp
2006-06-05 20:57 ` [Bug fortran/27897] " pault at gcc dot gnu dot org
2006-06-05 21:21 ` pault at gcc dot gnu dot org
2006-06-06 4:21 ` pault at gcc dot gnu dot org
2006-06-06 4:23 ` pault at gcc dot gnu dot org
2006-06-06 4:28 ` pault at gcc dot gnu dot org
2006-06-09 7:38 ` 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).