public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/19181] New: ICE and segmentation fault with pointer member in user defined type
@ 2004-12-28 18:52 santugi at dptmaths dot ens-cachan dot fr
2004-12-28 18:54 ` [Bug fortran/19181] " santugi at dptmaths dot ens-cachan dot fr
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: santugi at dptmaths dot ens-cachan dot fr @ 2004-12-28 18:52 UTC (permalink / raw)
To: gcc-bugs
ICE and segmentation fault with user defined type containing
pointer elements when assigning a parameter object to
a non parameter object.
Happen on gcc version 4.0.0 20041226.
To reproduce, compile the following code:
PROGRAM TEST
IMPLICIT NONE
TYPE typea
INTEGER, DIMENSION(:) , POINTER :: member => NULL()
END TYPE typea
TYPE(typea), PARAMETER:: undefined_a = typea( NULL())
TYPE(typea) :: a
a=undefined_a
END PROGRAM TEST
No ICE occurs if the parameter keyword is removed.
--
Summary: ICE and segmentation fault with pointer member in user
defined type
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: santugi at dptmaths dot ens-cachan dot fr
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: freebsd
GCC host triplet: freebsd
GCC target triplet: freebsd
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19181
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/19181] ICE and segmentation fault with pointer member in user defined type
2004-12-28 18:52 [Bug fortran/19181] New: ICE and segmentation fault with pointer member in user defined type santugi at dptmaths dot ens-cachan dot fr
@ 2004-12-28 18:54 ` santugi at dptmaths dot ens-cachan dot fr
2004-12-28 20:01 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: santugi at dptmaths dot ens-cachan dot fr @ 2004-12-28 18:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From santugi at dptmaths dot ens-cachan dot fr 2004-12-28 18:54 -------
Created an attachment (id=7839)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7839&action=view)
testcase
A "minimal" testcase
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19181
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/19181] ICE and segmentation fault with pointer member in user defined type
2004-12-28 18:52 [Bug fortran/19181] New: ICE and segmentation fault with pointer member in user defined type santugi at dptmaths dot ens-cachan dot fr
2004-12-28 18:54 ` [Bug fortran/19181] " santugi at dptmaths dot ens-cachan dot fr
@ 2004-12-28 20:01 ` pinskia at gcc dot gnu dot org
2005-05-01 14:25 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-28 20:01 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-28 20:01 -------
Confirmed, here is the backtrace:
#0 0x0005bb8c in gfc_trans_structure_assign (dest=0x42449d80, expr=0x4240e330) at /Users/
pinskia/src/local3/gcc/gcc/fortran/trans-expr.c:1600
#1 0x0005bc08 in gfc_conv_structure (se=0xbffff760, expr=0x41604450, init=0) at /Users/pinskia/
src/local3/gcc/gcc/fortran/trans-expr.c:1703
#2 0x0005a804 in gfc_conv_expr (se=0x41604450, expr=0x41604450) at /Users/pinskia/src/local3/
gcc/gcc/fortran/trans-expr.c:1800
#3 0x0005c110 in gfc_trans_assignment (expr1=0x41604300, expr2=0x41604450) at /Users/
pinskia/src/local3/gcc/gcc/fortran/trans-expr.c:2173
#4 0x0004ea30 in gfc_trans_code (code=0x41604510) at /Users/pinskia/src/local3/gcc/gcc/fortran/
trans.c:495
#5 0x00059020 in gfc_generate_function_code (ns=0x42807800) at /Users/pinskia/src/local3/gcc/
gcc/fortran/trans-decl.c:2217
#6 0x0004ec28 in gfc_generate_code (ns=0x42807800) at /Users/pinskia/src/local3/gcc/gcc/
fortran/trans.c:679
#7 0x0003590c in gfc_parse_file () at /Users/pinskia/src/local3/gcc/gcc/fortran/parse.c:2628
#8 0x0004bd78 in gfc_be_parse_file (set_yydebug=1111548720) at /Users/pinskia/src/local3/gcc/
gcc/fortran/f95-lang.c:266
#9 0x00292bd4 in toplev_main (argc=1096828336, argv=0x4b8a24) at /Users/pinskia/src/local3/
gcc/gcc/toplev.c:992
#10 0x00001e9c in _start (argc=1, argv=0x4050fb68, envp=0x42807800) at /SourceCache/Csu/Csu
-47/crt.c:267
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-12-28 20:01:04
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19181
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/19181] ICE and segmentation fault with pointer member in user defined type
2004-12-28 18:52 [Bug fortran/19181] New: ICE and segmentation fault with pointer member in user defined type santugi at dptmaths dot ens-cachan dot fr
2004-12-28 18:54 ` [Bug fortran/19181] " santugi at dptmaths dot ens-cachan dot fr
2004-12-28 20:01 ` pinskia at gcc dot gnu dot org
@ 2005-05-01 14:25 ` pinskia at gcc dot gnu dot org
2005-09-18 4:56 ` pault at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-01 14:25 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-01 14:25 -------
*** Bug 21300 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrea at poisson dot phc
| |dot unipi dot it
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19181
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/19181] ICE and segmentation fault with pointer member in user defined type
2004-12-28 18:52 [Bug fortran/19181] New: ICE and segmentation fault with pointer member in user defined type santugi at dptmaths dot ens-cachan dot fr
` (2 preceding siblings ...)
2005-05-01 14:25 ` pinskia at gcc dot gnu dot org
@ 2005-09-18 4:56 ` pault at gcc dot gnu dot org
2005-09-18 4:59 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pault at gcc dot gnu dot org @ 2005-09-18 4:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pault at gcc dot gnu dot org 2005-09-18 04:56 -------
(In reply to comment #3)
> *** Bug 21300 has been marked as a duplicate of this bug. ***
Andrew,
These two seem to have fixed themselves. Would you like me to submit a testcase?
Paul T
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19181
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/19181] ICE and segmentation fault with pointer member in user defined type
2004-12-28 18:52 [Bug fortran/19181] New: ICE and segmentation fault with pointer member in user defined type santugi at dptmaths dot ens-cachan dot fr
` (3 preceding siblings ...)
2005-09-18 4:56 ` pault at gcc dot gnu dot org
@ 2005-09-18 4:59 ` pinskia at gcc dot gnu dot org
2005-09-18 15:59 ` cvs-commit at gcc dot gnu dot org
2005-09-18 17:06 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-18 4:59 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-18 04:59 -------
(In reply to comment #4)
> These two seem to have fixed themselves. Would you like me to submit a testcase?
Yes please.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |pault at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19181
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/19181] ICE and segmentation fault with pointer member in user defined type
2004-12-28 18:52 [Bug fortran/19181] New: ICE and segmentation fault with pointer member in user defined type santugi at dptmaths dot ens-cachan dot fr
` (4 preceding siblings ...)
2005-09-18 4:59 ` pinskia at gcc dot gnu dot org
@ 2005-09-18 15:59 ` cvs-commit at gcc dot gnu dot org
2005-09-18 17:06 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-09-18 15:59 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-09-18 15:59 -------
Subject: Bug 19181
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: pault@gcc.gnu.org 2005-09-18 15:59:09
Modified files:
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gfortran.dg: derived_pointer_null_1.f90
Log message:
2005-09-18 Paul Thomas <pault@gcc.gnu.org>
PR fortran/19181
* gfortran.dg/derived_pointer_null_1.f90: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/derived_pointer_null_1.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.6077&r2=1.6078
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19181
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/19181] ICE and segmentation fault with pointer member in user defined type
2004-12-28 18:52 [Bug fortran/19181] New: ICE and segmentation fault with pointer member in user defined type santugi at dptmaths dot ens-cachan dot fr
` (5 preceding siblings ...)
2005-09-18 15:59 ` cvs-commit at gcc dot gnu dot org
@ 2005-09-18 17:06 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-18 17:06 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-18 17:06 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19181
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-09-18 17:06 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-28 18:52 [Bug fortran/19181] New: ICE and segmentation fault with pointer member in user defined type santugi at dptmaths dot ens-cachan dot fr
2004-12-28 18:54 ` [Bug fortran/19181] " santugi at dptmaths dot ens-cachan dot fr
2004-12-28 20:01 ` pinskia at gcc dot gnu dot org
2005-05-01 14:25 ` pinskia at gcc dot gnu dot org
2005-09-18 4:56 ` pault at gcc dot gnu dot org
2005-09-18 4:59 ` pinskia at gcc dot gnu dot org
2005-09-18 15:59 ` cvs-commit at gcc dot gnu dot org
2005-09-18 17:06 ` 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).