public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/45161] New: ICE on gfortran.dg/typebound_proc_16.f03 with -std=f2003
@ 2010-08-02 4:02 dominiq at lps dot ens dot fr
2010-08-02 6:56 ` [Bug fortran/45161] " janus at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: dominiq at lps dot ens dot fr @ 2010-08-02 4:02 UTC (permalink / raw)
To: gcc-bugs
When compiled with -std=f2003 gfortran.dg/typebound_proc_16.f03 yields an ICE:
/opt/gcc/work/gcc/testsuite/gfortran.dg/typebound_proc_16.f03:18.49:
PROCEDURE,PRIVATE :: rat_asgn_i, rat_plus_rat, rat_plus_i
1
Error: Fortran 2008: PROCEDURE list at (1)
/opt/gcc/work/gcc/testsuite/gfortran.dg/typebound_proc_16.f03:22.29:
GENERIC :: OPERATOR(+) => rat_plus_rat, rat_plus_i, i_plus_rat
1
Error: Undefined specific binding 'rat_plus_i' as target of GENERIC '+' at (1)
f951: internal compiler error: Segmentation fault
Backtrace:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000007fffffffff
gfc_check_operator_interface (sym=0x14190af40, op=INTRINSIC_ASSIGN,
opwhere={nextc = 0x14191336c, lb = 0x1419132d0}) at
../../work/gcc/fortran/interface.c:572
572 gfc_symbol *fsym = formal->sym;
(gdb) bt
#0 gfc_check_operator_interface (sym=0x14190af40, op=INTRINSIC_ASSIGN,
opwhere={nextc = 0x14191336c, lb = 0x1419132d0}) at
../../work/gcc/fortran/interface.c:572
#1 0x00000001000823e2 in resolve_fl_derived (sym=0x1419166a0) at
../../work/gcc/fortran/resolve.c:10427
#2 0x0000000100081eb9 in resolve_fl_derived (sym=0x141917200) at
../../work/gcc/fortran/resolve.c:10842
#3 0x0000000100080268 in resolve_symbol (sym=0x141917200) at
../../work/gcc/fortran/resolve.c:11506
#4 0x0000000100093d70 in traverse_ns (st=<value temporarily unavailable, due
to optimizations>, func=0x10007f9e0 <resolve_symbol>) at
../../work/gcc/fortran/symbol.c:3357
#5 0x0000000100093d5e in traverse_ns (st=<value temporarily unavailable, due
to optimizations>, func=0x10007f9e0 <resolve_symbol>) at
../../work/gcc/fortran/symbol.c:3354
#6 0x000000010007e0c5 in resolve_types (ns=0x142036600) at
../../work/gcc/fortran/resolve.c:12971
#7 0x0000000100077310 in gfc_resolve (ns=0x142036600) at
../../work/gcc/fortran/resolve.c:13067
#8 0x000000010006b2d3 in gfc_parse_file () at
../../work/gcc/fortran/parse.c:4392
#9 0x00000001000a51ec in gfc_be_parse_file (set_yydebug=<value temporarily
unavailable, due to optimizations>) at ../../work/gcc/fortran/f95-lang.c:241
#10 0x000000010069a18a in toplev_main (argc=3, argv=0x7fff5fbfd958) at
../../work/gcc/toplev.c:945
#11 0x0000000100001814 in start ()
--
Summary: ICE on gfortran.dg/typebound_proc_16.f03 with -std=f2003
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dominiq at lps dot ens dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45161
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/45161] ICE on gfortran.dg/typebound_proc_16.f03 with -std=f2003
2010-08-02 4:02 [Bug fortran/45161] New: ICE on gfortran.dg/typebound_proc_16.f03 with -std=f2003 dominiq at lps dot ens dot fr
@ 2010-08-02 6:56 ` janus at gcc dot gnu dot org
2010-08-02 20:53 ` janus at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: janus at gcc dot gnu dot org @ 2010-08-02 6:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from janus at gcc dot gnu dot org 2010-08-02 06:56 -------
Probably related to PR 44584.
--
janus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |janus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45161
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/45161] ICE on gfortran.dg/typebound_proc_16.f03 with -std=f2003
2010-08-02 4:02 [Bug fortran/45161] New: ICE on gfortran.dg/typebound_proc_16.f03 with -std=f2003 dominiq at lps dot ens dot fr
2010-08-02 6:56 ` [Bug fortran/45161] " janus at gcc dot gnu dot org
@ 2010-08-02 20:53 ` janus at gcc dot gnu dot org
2010-08-03 11:09 ` janus at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: janus at gcc dot gnu dot org @ 2010-08-02 20:53 UTC (permalink / raw)
To: gcc-bugs
--
janus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |janus at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2010-08-02 20:53:04
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45161
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/45161] ICE on gfortran.dg/typebound_proc_16.f03 with -std=f2003
2010-08-02 4:02 [Bug fortran/45161] New: ICE on gfortran.dg/typebound_proc_16.f03 with -std=f2003 dominiq at lps dot ens dot fr
2010-08-02 6:56 ` [Bug fortran/45161] " janus at gcc dot gnu dot org
2010-08-02 20:53 ` janus at gcc dot gnu dot org
@ 2010-08-03 11:09 ` janus at gcc dot gnu dot org
2010-08-03 11:13 ` janus at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: janus at gcc dot gnu dot org @ 2010-08-03 11:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from janus at gcc dot gnu dot org 2010-08-03 11:09 -------
Subject: Bug 45161
Author: janus
Date: Tue Aug 3 11:08:50 2010
New Revision: 162840
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=162840
Log:
2010-08-03 Janus Weil <janus@gcc.gnu.org>
PR fortran/44584
PR fortran/45161
* class.c (add_procs_to_declared_vtab1): Don't add erroneous
procedures.
* resolve.c (resolve_tb_generic_targets): Check for errors.
2010-08-03 Janus Weil <janus@gcc.gnu.org>
PR fortran/44584
PR fortran/45161
* gfortran.dg/typebound_call_9.f03: Modified.
* gfortran.dg/typebound_generic_1.f03: Modified.
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/class.c
trunk/gcc/fortran/resolve.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/typebound_call_9.f03
trunk/gcc/testsuite/gfortran.dg/typebound_generic_1.f03
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45161
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/45161] ICE on gfortran.dg/typebound_proc_16.f03 with -std=f2003
2010-08-02 4:02 [Bug fortran/45161] New: ICE on gfortran.dg/typebound_proc_16.f03 with -std=f2003 dominiq at lps dot ens dot fr
` (2 preceding siblings ...)
2010-08-03 11:09 ` janus at gcc dot gnu dot org
@ 2010-08-03 11:13 ` janus at gcc dot gnu dot org
2010-08-03 11:25 ` dominiq at lps dot ens dot fr
2010-08-03 11:26 ` janus at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: janus at gcc dot gnu dot org @ 2010-08-03 11:13 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from janus at gcc dot gnu dot org 2010-08-03 11:13 -------
Fixed with r162840.
Dominique, can you confirm that the ICE is gone on darwin?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45161
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/45161] ICE on gfortran.dg/typebound_proc_16.f03 with -std=f2003
2010-08-02 4:02 [Bug fortran/45161] New: ICE on gfortran.dg/typebound_proc_16.f03 with -std=f2003 dominiq at lps dot ens dot fr
` (3 preceding siblings ...)
2010-08-03 11:13 ` janus at gcc dot gnu dot org
@ 2010-08-03 11:25 ` dominiq at lps dot ens dot fr
2010-08-03 11:26 ` janus at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: dominiq at lps dot ens dot fr @ 2010-08-03 11:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from dominiq at lps dot ens dot fr 2010-08-03 11:25 -------
> Dominique, can you confirm that the ICE is gone on darwin?
AFAICT yes, thanks for the fix.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45161
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/45161] ICE on gfortran.dg/typebound_proc_16.f03 with -std=f2003
2010-08-02 4:02 [Bug fortran/45161] New: ICE on gfortran.dg/typebound_proc_16.f03 with -std=f2003 dominiq at lps dot ens dot fr
` (4 preceding siblings ...)
2010-08-03 11:25 ` dominiq at lps dot ens dot fr
@ 2010-08-03 11:26 ` janus at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: janus at gcc dot gnu dot org @ 2010-08-03 11:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from janus at gcc dot gnu dot org 2010-08-03 11:26 -------
(In reply to comment #4)
> AFAICT yes, thanks for the fix.
Great, thanks for checking. I'll close this one.
--
janus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45161
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-08-03 11:26 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-02 4:02 [Bug fortran/45161] New: ICE on gfortran.dg/typebound_proc_16.f03 with -std=f2003 dominiq at lps dot ens dot fr
2010-08-02 6:56 ` [Bug fortran/45161] " janus at gcc dot gnu dot org
2010-08-02 20:53 ` janus at gcc dot gnu dot org
2010-08-03 11:09 ` janus at gcc dot gnu dot org
2010-08-03 11:13 ` janus at gcc dot gnu dot org
2010-08-03 11:25 ` dominiq at lps dot ens dot fr
2010-08-03 11:26 ` janus 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).