public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/29051] New: segfault when too few values are in data statement of character array
@ 2006-09-13 1:21 bdavis at gcc dot gnu dot org
2006-09-13 1:40 ` [Bug fortran/29051] " pinskia at gcc dot gnu dot org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: bdavis at gcc dot gnu dot org @ 2006-09-13 1:21 UTC (permalink / raw)
To: gcc-bugs
[bdavis@localhost current]$ cat f.f
character*10 a(4,2) /'aaa','bbb','ccc','ddd'/
end
[bdavis@localhost current]$ /usr/local/bin/gfortran -c f.f
f.f: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.
[bdavis@localhost current]$ g77 f.f
f.f: In program `MAIN__':
f.f:1:
character*10 a(4,2) /'aaa','bbb','ccc','ddd'/
^
Too few initial values in list of initializers for `a' at (^)
--
Summary: segfault when too few values are in data statement of
character array
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bdavis at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29051
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/29051] segfault when too few values are in data statement of character array
2006-09-13 1:21 [Bug fortran/29051] New: segfault when too few values are in data statement of character array bdavis at gcc dot gnu dot org
@ 2006-09-13 1:40 ` pinskia at gcc dot gnu dot org
2006-09-13 4:18 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-13 1:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-09-13 01:40 -------
*** Bug 29052 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29051
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/29051] segfault when too few values are in data statement of character array
2006-09-13 1:21 [Bug fortran/29051] New: segfault when too few values are in data statement of character array bdavis at gcc dot gnu dot org
2006-09-13 1:40 ` [Bug fortran/29051] " pinskia at gcc dot gnu dot org
@ 2006-09-13 4:18 ` pinskia at gcc dot gnu dot org
2006-09-13 4:27 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-13 4:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-09-13 04:18 -------
*** Bug 29050 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29051
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/29051] segfault when too few values are in data statement of character array
2006-09-13 1:21 [Bug fortran/29051] New: segfault when too few values are in data statement of character array bdavis at gcc dot gnu dot org
2006-09-13 1:40 ` [Bug fortran/29051] " pinskia at gcc dot gnu dot org
2006-09-13 4:18 ` pinskia at gcc dot gnu dot org
@ 2006-09-13 4:27 ` pinskia at gcc dot gnu dot org
2006-09-13 8:21 ` pault at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-13 4:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-09-13 04:27 -------
Confirmed.
--
pinskia 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-09-13 04:27:37
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29051
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/29051] segfault when too few values are in data statement of character array
2006-09-13 1:21 [Bug fortran/29051] New: segfault when too few values are in data statement of character array bdavis at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-09-13 4:27 ` pinskia at gcc dot gnu dot org
@ 2006-09-13 8:21 ` pault at gcc dot gnu dot org
2006-09-13 8:35 ` patchapp at dberlin dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-09-13 8:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pault at gcc dot gnu dot org 2006-09-13 08:21 -------
Bud,
Quite by chance, I had noticed the cause of this a couple of days ago; if you
look at the Doxygen documentation for gfc_data, you will see that the only
reference to the locus field 'where' is in resolve.c(resolve_data), where the
error is emitted. I was mulling over where the locus was being set and why the
documentation might miss it, when I saw your PR and realised that it isn't set
at all!
An Occam's Razor moment.....
The patch is going to the list in a few minutes.
Paul
--
pault at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pault at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2006-09-13 04:27:37 |2006-09-13 08:21:40
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29051
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/29051] segfault when too few values are in data statement of character array
2006-09-13 1:21 [Bug fortran/29051] New: segfault when too few values are in data statement of character array bdavis at gcc dot gnu dot org
` (3 preceding siblings ...)
2006-09-13 8:21 ` pault at gcc dot gnu dot org
@ 2006-09-13 8:35 ` patchapp at dberlin dot org
2006-09-15 16:31 ` pault at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: patchapp at dberlin dot org @ 2006-09-13 8:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from patchapp at dberlin dot org 2006-09-13 08:35 -------
Subject: Bug number PR29051
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-09/msg00496.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29051
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/29051] segfault when too few values are in data statement of character array
2006-09-13 1:21 [Bug fortran/29051] New: segfault when too few values are in data statement of character array bdavis at gcc dot gnu dot org
` (4 preceding siblings ...)
2006-09-13 8:35 ` patchapp at dberlin dot org
@ 2006-09-15 16:31 ` pault at gcc dot gnu dot org
2006-09-15 16:39 ` pault at gcc dot gnu dot org
2006-09-15 16:39 ` pault at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-09-15 16:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from pault at gcc dot gnu dot org 2006-09-15 16:31 -------
Subject: Bug 29051
Author: pault
Date: Fri Sep 15 16:30:52 2006
New Revision: 116977
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116977
Log:
2006-09-15 Paul Thomas <pault@gcc.gnu.org>
PR fortran/29051
* decl.c (match_old_style_init): Set the 'where' field of the
gfc_data structure 'newdata'.
* match.c (match_case_eos): Add a comprehensible error message.
2006-09-15 Paul Thomas <pault@gcc.gnu.org>
PR fortran/29051
* gfortran.dg/oldstyle_3.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/oldstyle_3.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/decl.c
trunk/gcc/fortran/match.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29051
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/29051] segfault when too few values are in data statement of character array
2006-09-13 1:21 [Bug fortran/29051] New: segfault when too few values are in data statement of character array bdavis at gcc dot gnu dot org
` (5 preceding siblings ...)
2006-09-15 16:31 ` pault at gcc dot gnu dot org
@ 2006-09-15 16:39 ` pault at gcc dot gnu dot org
2006-09-15 16:39 ` pault at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-09-15 16:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from pault at gcc dot gnu dot org 2006-09-15 16:39 -------
Subject: Bug 29051
Author: pault
Date: Fri Sep 15 16:38:51 2006
New Revision: 116978
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116978
Log:
2006-09-15 Paul Thomas <pault@gcc.gnu.org>
PR fortran/29051
* decl.c (match_old_style_init): Set the 'where' field of the
gfc_data structure 'newdata'.
* match.c (match_case_eos): Add a comprehensible error message.
2006-09-15 Paul Thomas <pault@gcc.gnu.org>
PR fortran/29051
* gfortran.dg/oldstyle_3.f90: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/oldstyle_3.f90
Modified:
branches/gcc-4_1-branch/gcc/fortran/ChangeLog
branches/gcc-4_1-branch/gcc/fortran/decl.c
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=29051
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/29051] segfault when too few values are in data statement of character array
2006-09-13 1:21 [Bug fortran/29051] New: segfault when too few values are in data statement of character array bdavis at gcc dot gnu dot org
` (6 preceding siblings ...)
2006-09-15 16:39 ` pault at gcc dot gnu dot org
@ 2006-09-15 16:39 ` pault at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-09-15 16:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from pault at gcc dot gnu dot org 2006-09-15 16:39 -------
Fixed on trunk and 4.1
Thanks, Bud
Paul
--
pault at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29051
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2006-09-15 16:39 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-13 1:21 [Bug fortran/29051] New: segfault when too few values are in data statement of character array bdavis at gcc dot gnu dot org
2006-09-13 1:40 ` [Bug fortran/29051] " pinskia at gcc dot gnu dot org
2006-09-13 4:18 ` pinskia at gcc dot gnu dot org
2006-09-13 4:27 ` pinskia at gcc dot gnu dot org
2006-09-13 8:21 ` pault at gcc dot gnu dot org
2006-09-13 8:35 ` patchapp at dberlin dot org
2006-09-15 16:31 ` pault at gcc dot gnu dot org
2006-09-15 16:39 ` pault at gcc dot gnu dot org
2006-09-15 16:39 ` pault 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).