public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/30683] New: internal compiler error: Segmentation fault
@ 2007-02-02 22:01 sfilippone at uniroma2 dot it
2007-02-02 22:02 ` [Bug fortran/30683] " sfilippone at uniroma2 dot it
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: sfilippone at uniroma2 dot it @ 2007-02-02 22:01 UTC (permalink / raw)
To: gcc-bugs
The attached code produces the subject error.
gfortran -c bug_n.f90
bug_n.f90:45: 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.
[sfilippo@localhost NEMO]$ gfortran -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.2-20070124/configure --prefix=/usr/local/gcc42
--with-mpfr=/home/travel/GCC/BUILDS/mpfr
--with-gmp-lib=/home/travel/GCC/BUILDS/gmp/lib/
--with-gmp=/home/travel/GCC/BUILDS/gmp
Thread model: posix
gcc version 4.2.0 20070124 (prerelease)
--
Summary: internal compiler error: Segmentation fault
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sfilippone at uniroma2 dot it
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=30683
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/30683] internal compiler error: Segmentation fault
2007-02-02 22:01 [Bug fortran/30683] New: internal compiler error: Segmentation fault sfilippone at uniroma2 dot it
@ 2007-02-02 22:02 ` sfilippone at uniroma2 dot it
2007-02-02 23:44 ` kargl at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: sfilippone at uniroma2 dot it @ 2007-02-02 22:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from sfilippone at uniroma2 dot it 2007-02-02 22:01 -------
Created an attachment (id=12999)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12999&action=view)
test case
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30683
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/30683] internal compiler error: Segmentation fault
2007-02-02 22:01 [Bug fortran/30683] New: internal compiler error: Segmentation fault sfilippone at uniroma2 dot it
2007-02-02 22:02 ` [Bug fortran/30683] " sfilippone at uniroma2 dot it
@ 2007-02-02 23:44 ` kargl at gcc dot gnu dot org
2007-02-03 1:01 ` kargl at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: kargl at gcc dot gnu dot org @ 2007-02-02 23:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from kargl at gcc dot gnu dot org 2007-02-02 23:44 -------
I'm testing a patch for this at the moment. The problem is you
have renamed SIZE to an interface. That is, this is leading to
the segfault:
interface size
module procedure get_fld_size
end interface
While the standard may permit this construct, it may be prudent to
not rename standard intrinsic procedures.
--
kargl at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kargl at gcc dot gnu dot org
GCC build triplet| i686-pc-linux-gnu |i686-pc-linux-gnu
GCC host triplet| i686-pc-linux-gnu |i686-pc-linux-gnu
GCC target triplet| i686-pc-linux-gnu |i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30683
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/30683] internal compiler error: Segmentation fault
2007-02-02 22:01 [Bug fortran/30683] New: internal compiler error: Segmentation fault sfilippone at uniroma2 dot it
2007-02-02 22:02 ` [Bug fortran/30683] " sfilippone at uniroma2 dot it
2007-02-02 23:44 ` kargl at gcc dot gnu dot org
@ 2007-02-03 1:01 ` kargl at gcc dot gnu dot org
2007-02-03 1:08 ` [Bug fortran/30683] [4.2 only] " kargl at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: kargl at gcc dot gnu dot org @ 2007-02-03 1:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from kargl at gcc dot gnu dot org 2007-02-03 01:01 -------
Subject: Bug 30683
Author: kargl
Date: Sat Feb 3 01:01:06 2007
New Revision: 121531
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121531
Log:
2007-02-02 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/30683
* resolve.c (resolve_generic_f): Check for non-NULL sym.
* gfortran.dg/interface_10.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/interface_10.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/resolve.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30683
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/30683] [4.2 only] internal compiler error: Segmentation fault
2007-02-02 22:01 [Bug fortran/30683] New: internal compiler error: Segmentation fault sfilippone at uniroma2 dot it
` (2 preceding siblings ...)
2007-02-03 1:01 ` kargl at gcc dot gnu dot org
@ 2007-02-03 1:08 ` kargl at gcc dot gnu dot org
2007-02-03 10:34 ` fxcoudert at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: kargl at gcc dot gnu dot org @ 2007-02-03 1:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from kargl at gcc dot gnu dot org 2007-02-03 01:07 -------
Fixed on trunk.
--
kargl at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|internal compiler error: |[4.2 only] internal compiler
|Segmentation fault |error: Segmentation fault
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30683
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/30683] [4.2 only] internal compiler error: Segmentation fault
2007-02-02 22:01 [Bug fortran/30683] New: internal compiler error: Segmentation fault sfilippone at uniroma2 dot it
` (3 preceding siblings ...)
2007-02-03 1:08 ` [Bug fortran/30683] [4.2 only] " kargl at gcc dot gnu dot org
@ 2007-02-03 10:34 ` fxcoudert at gcc dot gnu dot org
2007-02-03 12:06 ` sfilippone at uniroma2 dot it
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-02-03 10:34 UTC (permalink / raw)
To: gcc-bugs
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
GCC build triplet|i686-pc-linux-gnu |
GCC host triplet|i686-pc-linux-gnu |
GCC target triplet|i686-pc-linux-gnu |
Keywords| |ice-on-valid-code, patch
Known to fail| |4.2.0 4.1.2
Known to work| |4.3.0
Last reconfirmed|0000-00-00 00:00:00 |2007-02-03 10:33:57
date| |
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30683
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/30683] [4.2 only] internal compiler error: Segmentation fault
2007-02-02 22:01 [Bug fortran/30683] New: internal compiler error: Segmentation fault sfilippone at uniroma2 dot it
` (4 preceding siblings ...)
2007-02-03 10:34 ` fxcoudert at gcc dot gnu dot org
@ 2007-02-03 12:06 ` sfilippone at uniroma2 dot it
2007-02-03 17:45 ` sgk at troutmask dot apl dot washington dot edu
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: sfilippone at uniroma2 dot it @ 2007-02-03 12:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from sfilippone at uniroma2 dot it 2007-02-03 12:05 -------
(In reply to comment #2)
> I'm testing a patch for this at the moment. The problem is you
> have renamed SIZE to an interface. That is, this is leading to
> the segfault:
>
>
> interface size
> module procedure get_fld_size
> end interface
>
> While the standard may permit this construct, it may be prudent to
> not rename standard intrinsic procedures.
>
Agreed.
I take it you mean it IS standard conforming, right?
Just to make sure. In any case, an ice is an ice....
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30683
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/30683] [4.2 only] internal compiler error: Segmentation fault
2007-02-02 22:01 [Bug fortran/30683] New: internal compiler error: Segmentation fault sfilippone at uniroma2 dot it
` (5 preceding siblings ...)
2007-02-03 12:06 ` sfilippone at uniroma2 dot it
@ 2007-02-03 17:45 ` sgk at troutmask dot apl dot washington dot edu
2007-02-03 19:00 ` kargl at gcc dot gnu dot org
2007-02-03 19:01 ` kargl at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: sgk at troutmask dot apl dot washington dot edu @ 2007-02-03 17:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from sgk at troutmask dot apl dot washington dot edu 2007-02-03 17:45 -------
Subject: Re: [4.2 only] internal compiler error: Segmentation fault
On Sat, Feb 03, 2007 at 12:05:53PM -0000, sfilippone at uniroma2 dot it wrote:
>
> > I'm testing a patch for this at the moment. The problem is you
> > have renamed SIZE to an interface. That is, this is leading to
> > the segfault:
> >
> >
> > interface size
> > module procedure get_fld_size
> > end interface
> >
> > While the standard may permit this construct, it may be prudent to
> > not rename standard intrinsic procedures.
> >
> Agreed.
> I take it you mean it IS standard conforming, right?
I a quick scan of F2003, I could not find anything that
say the construct above is nonconforming. So, I believe
that it is permitted.
> Just to make sure. In any case, an ice is an ice....
Yes, indeed. Fortunately, this one was easy to find
and fix.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30683
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/30683] [4.2 only] internal compiler error: Segmentation fault
2007-02-02 22:01 [Bug fortran/30683] New: internal compiler error: Segmentation fault sfilippone at uniroma2 dot it
` (6 preceding siblings ...)
2007-02-03 17:45 ` sgk at troutmask dot apl dot washington dot edu
@ 2007-02-03 19:00 ` kargl at gcc dot gnu dot org
2007-02-03 19:01 ` kargl at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: kargl at gcc dot gnu dot org @ 2007-02-03 19:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from kargl at gcc dot gnu dot org 2007-02-03 19:00 -------
Subject: Bug 30683
Author: kargl
Date: Sat Feb 3 18:59:53 2007
New Revision: 121548
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121548
Log:
2007-02-02 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/30683
* resolve.c (resolve_generic_f): Check for non-NULL sym.
* gfortran.dg/interface_10.f
Added:
branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/interface_10.f90
Modified:
branches/gcc-4_2-branch/gcc/fortran/ChangeLog
branches/gcc-4_2-branch/gcc/fortran/resolve.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30683
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/30683] [4.2 only] internal compiler error: Segmentation fault
2007-02-02 22:01 [Bug fortran/30683] New: internal compiler error: Segmentation fault sfilippone at uniroma2 dot it
` (7 preceding siblings ...)
2007-02-03 19:00 ` kargl at gcc dot gnu dot org
@ 2007-02-03 19:01 ` kargl at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: kargl at gcc dot gnu dot org @ 2007-02-03 19:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from kargl at gcc dot gnu dot org 2007-02-03 19:01 -------
Fixed on 4.2.
--
kargl at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30683
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2007-02-03 19:01 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-02 22:01 [Bug fortran/30683] New: internal compiler error: Segmentation fault sfilippone at uniroma2 dot it
2007-02-02 22:02 ` [Bug fortran/30683] " sfilippone at uniroma2 dot it
2007-02-02 23:44 ` kargl at gcc dot gnu dot org
2007-02-03 1:01 ` kargl at gcc dot gnu dot org
2007-02-03 1:08 ` [Bug fortran/30683] [4.2 only] " kargl at gcc dot gnu dot org
2007-02-03 10:34 ` fxcoudert at gcc dot gnu dot org
2007-02-03 12:06 ` sfilippone at uniroma2 dot it
2007-02-03 17:45 ` sgk at troutmask dot apl dot washington dot edu
2007-02-03 19:00 ` kargl at gcc dot gnu dot org
2007-02-03 19:01 ` kargl 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).