public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/45117] New: Segfault in resolve_array_bound
@ 2010-07-28 20:49 spop at gcc dot gnu dot org
2010-07-29 6:34 ` [Bug fortran/45117] [4.3/4.4/4.5/4.6 Regression] " burnus at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: spop at gcc dot gnu dot org @ 2010-07-28 20:49 UTC (permalink / raw)
To: gcc-bugs
GCC segfaults on this program while printing diagnostic:
SUBROUTINE DFTAX8A(F,H,MAPAUX,IAUXTYP,LOCAUX)
COMMON /INFOA / NAT,ICH,MUL,NUM,NQMT,NE,NA,NB,
* TMPTMP(NUM+NAUXFUN,NUM+NAUXFUN)
END
This happens in resolve_array_bound, on trying to access a NULL pointer:
gfc_error ("Variable '%s' at %L in this context must be constant",
e->symtree->n.sym->name, &e->where);
(gdb) p e->symtree
$26 = (gfc_symtree *) 0x0
--
Summary: Segfault in resolve_array_bound
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: spop at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45117
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/45117] [4.3/4.4/4.5/4.6 Regression] Segfault in resolve_array_bound
2010-07-28 20:49 [Bug fortran/45117] New: Segfault in resolve_array_bound spop at gcc dot gnu dot org
@ 2010-07-29 6:34 ` burnus at gcc dot gnu dot org
2010-07-29 9:07 ` domob at gcc dot gnu dot org
2010-07-29 10:03 ` domob at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-07-29 6:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from burnus at gcc dot gnu dot org 2010-07-29 06:34 -------
For completeness: The code is invalid - which gfortran also properly diagnoses
before segfaulting.
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |ice-on-invalid-code
Known to fail| |4.3.4 4.4.0 4.5.1 4.6.0
Known to work| |4.2.1 4.1.2
Last reconfirmed|0000-00-00 00:00:00 |2010-07-29 06:34:01
date| |
Summary|Segfault in |[4.3/4.4/4.5/4.6 Regression]
|resolve_array_bound |Segfault in
| |resolve_array_bound
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45117
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/45117] [4.3/4.4/4.5/4.6 Regression] Segfault in resolve_array_bound
2010-07-28 20:49 [Bug fortran/45117] New: Segfault in resolve_array_bound spop at gcc dot gnu dot org
2010-07-29 6:34 ` [Bug fortran/45117] [4.3/4.4/4.5/4.6 Regression] " burnus at gcc dot gnu dot org
@ 2010-07-29 9:07 ` domob at gcc dot gnu dot org
2010-07-29 10:03 ` domob at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: domob at gcc dot gnu dot org @ 2010-07-29 9:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from domob at gcc dot gnu dot org 2010-07-29 09:07 -------
Subject: Bug 45117
Author: domob
Date: Thu Jul 29 09:06:53 2010
New Revision: 162670
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=162670
Log:
2010-07-29 Daniel Kraft <d@domob.eu>
PR fortran/45117
* array.c (resolve_array_bound): Fix error message to properly handle
non-variable expressions.
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/array.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45117
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/45117] [4.3/4.4/4.5/4.6 Regression] Segfault in resolve_array_bound
2010-07-28 20:49 [Bug fortran/45117] New: Segfault in resolve_array_bound spop at gcc dot gnu dot org
2010-07-29 6:34 ` [Bug fortran/45117] [4.3/4.4/4.5/4.6 Regression] " burnus at gcc dot gnu dot org
2010-07-29 9:07 ` domob at gcc dot gnu dot org
@ 2010-07-29 10:03 ` domob at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: domob at gcc dot gnu dot org @ 2010-07-29 10:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from domob at gcc dot gnu dot org 2010-07-29 10:03 -------
Fixed on trunk, closing.
--
domob at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.6.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45117
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-07-29 10:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-28 20:49 [Bug fortran/45117] New: Segfault in resolve_array_bound spop at gcc dot gnu dot org
2010-07-29 6:34 ` [Bug fortran/45117] [4.3/4.4/4.5/4.6 Regression] " burnus at gcc dot gnu dot org
2010-07-29 9:07 ` domob at gcc dot gnu dot org
2010-07-29 10:03 ` domob 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).