--- Comment #18 from fxcoudert at gcc dot gnu dot org 2006-10-31 20:15
---
Subject: Bug 29067
Author: fxcoudert
Date: Tue Oct 31 20:15:22 2006
New Revision: 118338
URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=118338
Log:
PR fortran/29067
* decl.c
--- Comment #17 from fxcoudert at gcc dot gnu dot org 2006-10-30 16:46
---
The following patch fixes the problem:
Index: data.c
===
--- data.c (revision 118134)
+++ data.c (working copy)
@@ -155,7 +155,8 @@
--- Comment #15 from pault at gcc dot gnu dot org 2006-10-17 12:43 ---
I cannot persuade this to fault on any of the platforms to which I have access
either. 'tis an odd one.
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29067
--- Comment #16 from fxcoudert at gcc dot gnu dot org 2006-10-17 13:01
---
Hurray! I can now also reproduce this on x86_64-linux with ElectricFence. Run
f951 inside gdb and preload ElectricFence (in gdb: set environment LD_PRELOAD
/usr/lib64/libefence.so). The segfault backtrace is:
--- Comment #14 from mathieu dot courtois at free dot fr 2006-10-16 21:28
---
Sorry for my silence...
I have the same error with source code of comment #12 always with :
gcc version 4.1.2 20060901 (prerelease) (Debian 4.1.1-13)
I'm downloading svn snapshot...
--
--- Comment #12 from fxcoudert at gcc dot gnu dot org 2006-10-15 08:40
---
(In reply to comment #10)
This trimmed down example is invalid code. The if (i0)
statement tries to use before it is defined.
Sorry about that: the following code is valid, and also fails to compile with
the
--- Comment #10 from kargl at gcc dot gnu dot org 2006-10-15 01:20 ---
(In reply to comment #9)
I managed to trim it down to:
implicit none
integer :: n, i
character(len=16),parameter :: s =
if (s(9:16) == 90123456) then
endif
if (i 0)
--- Comment #11 from kargl at gcc dot gnu dot org 2006-10-15 01:53 ---
I can't reproduce this, so drop assign status.
--
kargl at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #8 from fxcoudert at gcc dot gnu dot org 2006-10-13 07:38
---
(In reply to comment #3)
Can you upgrade and confirm that the code compiles?
No, Steve, it doesn't work for me either on i686-linux. I downloaded the code
from comment #2 (and to answer Paul: it doesn't contain
--- Comment #9 from fxcoudert at gcc dot gnu dot org 2006-10-13 07:54
---
I managed to trim it down to:
implicit none
integer :: n, i
character(len=16),parameter :: s =
if (s(9:16) == 90123456) then
endif
if (i 0) then
write (i,*) n
--- Comment #6 from pault at gcc dot gnu dot org 2006-10-12 12:18 ---
(In reply to comment #5)
I try as soon as possible.
Thanks for your help.
This subroutine is one of an open-source project which contains about
1.000.000
lines of fortran : http://www.code-aster.org.
Mathieu,
--- Comment #7 from sgk at troutmask dot apl dot washington dot edu
2006-10-12 14:13 ---
Subject: Re: Internal Error: gfc_resolve_expr(): Bad expression type
On Thu, Oct 12, 2006 at 12:18:30PM -, pault at gcc dot gnu dot org wrote:
--- Comment #6 from pault at gcc dot
--- Comment #4 from mathieu dot courtois at free dot fr 2006-09-14 09:05
---
Created an attachment (id=12266)
-- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12266action=view)
work around
With some *1 added, compilation pass !?
--
--- Comment #5 from mathieu dot courtois at free dot fr 2006-09-14 09:08
---
I try as soon as possible.
Thanks for your help.
This subroutine is one of an open-source project which contains about 1.000.000
lines of fortran : http://www.code-aster.org.
--
--- Comment #1 from kargl at gcc dot gnu dot org 2006-09-13 20:17 ---
This compiles with gfortran 4.2, so you may want to update to a
newer compiler.
Does this file contain any TAB characters?
--
kargl at gcc dot gnu dot org changed:
What|Removed
--- Comment #2 from mathieu dot courtois at free dot fr 2006-09-13 20:18
---
Created an attachment (id=12252)
-- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12252action=view)
source code
add source file
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29067
--- Comment #3 from kargl at gcc dot gnu dot org 2006-09-13 21:42 ---
This compiles with both
troutmask:sgk[265] gfc41 --version
GNU Fortran 95 (GCC) 4.1.2 20060913 (prerelease)
Copyright (C) 2006 Free Software Foundation, Inc.
troutmask:sgk[266] gfc4x --version
GNU Fortran 95 (GCC)
--
kargl at gcc dot gnu dot org changed:
What|Removed |Added
AssignedTo|unassigned at gcc dot gnu |kargl at gcc dot gnu dot org
|dot org
18 matches
Mail list logo