[Bug fortran/44584] [4.6 Regression] gfortran.dg/typebound_proc_15.f03 failed

2010-06-19 Thread janus at gcc dot gnu dot org
--- Comment #7 from janus at gcc dot gnu dot org 2010-06-20 00:06 --- Subject: Bug 44584 Author: janus Date: Sun Jun 20 00:05:35 2010 New Revision: 161041 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=161041 Log: 2010-06-19 Janus Weil ja...@gcc.gnu.org PR fortran

[Bug fortran/44584] [4.6 Regression] gfortran.dg/typebound_proc_15.f03 failed

2010-06-19 Thread janus at gcc dot gnu dot org
--- Comment #8 from janus at gcc dot gnu dot org 2010-06-20 00:12 --- (In reply to comment #6) It will be while before I can check it on ia64. However if your patch fixes valgrind issue on x86, it won't hurt to check it in. Thanks. Ok, the patch has landed on trunk. Please let me

[Bug fortran/44584] gfortran.dg/typebound_proc_15.f03 failed

2010-06-18 Thread janus at gcc dot gnu dot org
--- Comment #1 from janus at gcc dot gnu dot org 2010-06-18 21:18 --- Works for me on x86_64-unknown-linux-gnu at r160947. Can you show the backtrace for the ICE? -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/44584] gfortran.dg/typebound_proc_15.f03 failed

2010-06-18 Thread janus at gcc dot gnu dot org
--- Comment #2 from janus at gcc dot gnu dot org 2010-06-18 21:24 --- (In reply to comment #0) On Linux/ia64, revision 160858 gave ... Revision 160826 is OK. The only Fortran-related change in this range is r160834 | janus | 2010-06-16 14:54:54 +0200 (Wed, 16 Jun 2010) | 17 lines

[Bug fortran/44584] gfortran.dg/typebound_proc_15.f03 failed

2010-06-18 Thread janus at gcc dot gnu dot org
--- Comment #5 from janus at gcc dot gnu dot org 2010-06-18 23:54 --- (In reply to comment #3) /export/gnu/import/svn/gcc-test/src-trunk/gcc/testsuite/gfortran.dg/typebound_proc_15.f03:15.23: procedure :: bar, baz { dg-error PROCEDURE list } 1 Error

[Bug fortran/44558] [OOP] ICE on invalid code: called TBP subroutine as TBP function

2010-06-17 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2010-06-17 22:15 --- Subject: Bug 44558 Author: janus Date: Thu Jun 17 22:15:30 2010 New Revision: 160948 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=160948 Log: 2010-06-17 Janus Weil ja...@gcc.gnu.org PR fortran

[Bug fortran/44558] [OOP] ICE on invalid code: called TBP subroutine as TBP function

2010-06-17 Thread janus at gcc dot gnu dot org
--- Comment #4 from janus at gcc dot gnu dot org 2010-06-17 22:18 --- Fixed with r160948. Closing. Thanks for the report! -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/44565] [4.6 Regression] [OOP] ICE in gimplify_expr when passing generic function as argument

2010-06-17 Thread janus at gcc dot gnu dot org
-- janus at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1

[Bug fortran/44565] [4.6 Regression] [OOP] ICE in gimplify_expr with array-valued generic TBP

2010-06-17 Thread janus at gcc dot gnu dot org
--- Comment #2 from janus at gcc dot gnu dot org 2010-06-17 22:34 --- Reduced test case: module ice6 type :: t contains procedure :: get_array generic :: get_something = get_array end type contains function get_array(this) class(t) :: this real,dimension

[Bug fortran/43969] [OOP] ALLOCATED() with polymorphic arrays

2010-06-17 Thread janus at gcc dot gnu dot org
--- Comment #8 from janus at gcc dot gnu dot org 2010-06-17 22:38 --- *** Bug 44570 has been marked as a duplicate of this bug. *** -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/44570] [OOP] ICE on allocated statement with polymorphic derived type array

2010-06-17 Thread janus at gcc dot gnu dot org
--- Comment #1 from janus at gcc dot gnu dot org 2010-06-17 22:38 --- *** This bug has been marked as a duplicate of 43969 *** -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/44568] [OOP] ICE with TBP of polymorphic derived type array

2010-06-17 Thread janus at gcc dot gnu dot org
--- Comment #1 from janus at gcc dot gnu dot org 2010-06-17 22:46 --- This is not expected to work right now, as polymorphic arrays are not really implemented yet. -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/44565] [4.6 Regression] [OOP] ICE in gimplify_expr with array-valued generic TBP

2010-06-17 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2010-06-17 22:59 --- (In reply to comment #1) The modified code compile with 4.5.0, hence a regression I can trace between revisions 158215 (working) and 158921 (ICE). The regression is most probably due to the merging of the fortran

[Bug fortran/44549] [OOP][F2008] Type-bound procedure: bogus error from list after PROCEDURE

2010-06-16 Thread janus at gcc dot gnu dot org
--- Comment #2 from janus at gcc dot gnu dot org 2010-06-16 12:55 --- Subject: Bug 44549 Author: janus Date: Wed Jun 16 12:54:54 2010 New Revision: 160834 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=160834 Log: 2010-06-16 Janus Weil ja...@gcc.gnu.org PR fortran

[Bug fortran/44549] [OOP][F2008] Type-bound procedure: bogus error from list after PROCEDURE

2010-06-16 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2010-06-16 12:56 --- Fixed with r160834. Closing. -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/44558] [OOP] ICE on invalid code: called TBP subroutine as TBP function

2010-06-16 Thread janus at gcc dot gnu dot org
--- Comment #1 from janus at gcc dot gnu dot org 2010-06-16 20:50 --- Confirmed. Btw the same thing happens if you treat a type-bound function as if it were a subroutine: module ice5 type::a_type contains procedure::a_subroutine_1 procedure::a_subroutine_2 end type

[Bug fortran/44558] [OOP] ICE on invalid code: called TBP subroutine as TBP function

2010-06-16 Thread janus at gcc dot gnu dot org
--- Comment #2 from janus at gcc dot gnu dot org 2010-06-16 20:58 --- This is easily fixed by the following patch: Index: gcc/fortran/resolve.c === --- gcc/fortran/resolve.c (revision 160833) +++ gcc/fortran

[Bug fortran/43388] [F2008][OOP] ALLOCATE with MOLD=

2010-06-15 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2010-06-15 18:35 --- Subject: Bug 43388 Author: janus Date: Tue Jun 15 18:33:58 2010 New Revision: 160801 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=160801 Log: 2010-06-15 Janus Weil ja...@gcc.gnu.org PR fortran

[Bug fortran/44541] [OOP] wrong code for polymorphic variable with INTENT(OUT)/Alloc w/ MOLD

2010-06-15 Thread janus at gcc dot gnu dot org
--- Comment #1 from janus at gcc dot gnu dot org 2010-06-15 18:40 --- (In reply to comment #0) Follow up to PR 43388 (ALLOCATE with MOLD, a F2008 feature) For the MOLD problem we already have a test case in allocate_alloc_opt_10.f90 (which is put behind comments right now, but should

[Bug fortran/43388] [F2008][OOP] ALLOCATE with MOLD=

2010-06-15 Thread janus at gcc dot gnu dot org
--- Comment #4 from janus at gcc dot gnu dot org 2010-06-15 18:42 --- Fixed with r160801. Remaining problems are tracked by PR 44541. -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/42051] [OOP] ICE on array-valued function with CLASS formal argument

2010-06-15 Thread janus at gcc dot gnu dot org
--- Comment #10 from janus at gcc dot gnu dot org 2010-06-15 19:08 --- Comment #1 is fixed by r160622, but the original test case still does not work (hangs in some kind of infinite loop for me, at r160801 on x86_64-unknown-linux-gnu). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id

[Bug fortran/42051] [OOP] ICE on array-valued function with CLASS formal argument

2010-06-15 Thread janus at gcc dot gnu dot org
--- Comment #11 from janus at gcc dot gnu dot org 2010-06-15 19:38 --- Here is a reduced test case, based on comment #0: module grid_module implicit none type grid end type type field type(grid) :: mesh end type contains real function return_x(this) class(grid

[Bug fortran/42051] [OOP] ICE on array-valued function with CLASS formal argument

2010-06-15 Thread janus at gcc dot gnu dot org
--- Comment #12 from janus at gcc dot gnu dot org 2010-06-15 19:41 --- (In reply to comment #11) This gives me a segfault ICE. ... with the following backtrace: Program received signal SIGSEGV, Segmentation fault. 0x00553b5d in gfc_find_symtree (st=0x41, name=0x77f2de50

[Bug fortran/44549] [OOP][F2008] Type-bound procedure: bogus error from list after PROCEDURE

2010-06-15 Thread janus at gcc dot gnu dot org
--- Comment #1 from janus at gcc dot gnu dot org 2010-06-15 21:05 --- Dominique, thanks for reporting this. I can confirm the error you're seeing and I already see what's wrong: In 'match_procedure_in_type' the handling of the gfc_typebound_proc structures is not correct (each procedure

[Bug fortran/44529] New: [F03] array allocation with SOURCE

2010-06-13 Thread janus at gcc dot gnu dot org
AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: janus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44529

[Bug fortran/44529] [F03] array allocation with SOURCE

2010-06-13 Thread janus at gcc dot gnu dot org
--- Comment #1 from janus at gcc dot gnu dot org 2010-06-13 21:38 --- (In reply to comment #0) First example: integer, allocatable :: a(:), b(:) allocate (a, source = b) end This is rejected with allocate (a, source = b) 1 Error: Array specification required

[Bug fortran/43388] [F2008][OOP] ALLOCATE with MOLD=

2010-06-12 Thread janus at gcc dot gnu dot org
--- Comment #2 from janus at gcc dot gnu dot org 2010-06-13 02:46 --- I'll assign this to myself (working on a patch ...) -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/43896] [OOP] ICE in gfc_conv_variable, at fortran/trans-expr.c:551

2010-06-11 Thread janus at gcc dot gnu dot org
--- Comment #19 from janus at gcc dot gnu dot org 2010-06-11 16:46 --- Subject: Bug 43896 Author: janus Date: Fri Jun 11 16:45:48 2010 New Revision: 160622 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=160622 Log: 2010-06-11 Paul Thomas pa...@gcc.gnu.org PR fortran

[Bug fortran/42051] [OOP] ICE on array-valued function with CLASS formal argument

2010-06-11 Thread janus at gcc dot gnu dot org
--- Comment #9 from janus at gcc dot gnu dot org 2010-06-11 16:46 --- Subject: Bug 42051 Author: janus Date: Fri Jun 11 16:45:48 2010 New Revision: 160622 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=160622 Log: 2010-06-11 Paul Thomas pa...@gcc.gnu.org PR fortran

[Bug fortran/43896] [OOP] ICE in gfc_conv_variable, at fortran/trans-expr.c:551

2010-06-11 Thread janus at gcc dot gnu dot org
--- Comment #20 from janus at gcc dot gnu dot org 2010-06-11 16:50 --- Fixed with r160622. Closing. -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/42769] [OOP] ICE in resolve_typebound_procedure

2010-06-11 Thread janus at gcc dot gnu dot org
--- Comment #24 from janus at gcc dot gnu dot org 2010-06-11 21:33 --- Here is a somewhat modified version of comment #14, which compiles but produces wrong code: module mod1 type :: t1 contains procedure, nopass :: get = my_get end type contains subroutine my_get

[Bug fortran/42769] [OOP] ICE in resolve_typebound_procedure

2010-06-11 Thread janus at gcc dot gnu dot org
--- Comment #25 from janus at gcc dot gnu dot org 2010-06-11 22:16 --- This seems to be a module-loading bug. When reading the specific binding of the TBP 'get' from 'mod1' (which happens in module.c, mio_typebound_proc), we expect to get the symbol 'my_get' from 'mod1', but instead we

[Bug fortran/40117] [OOP][F2008] Type-bound procedure: allow list after PROCEDURE

2010-06-11 Thread janus at gcc dot gnu dot org
-- 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

[Bug fortran/44430] [4.5/4.6 Regression] Infinite recursion with -fdump-parse-tree

2010-06-11 Thread janus at gcc dot gnu dot org
--- Comment #9 from janus at gcc dot gnu dot org 2010-06-12 04:02 --- Subject: Bug 44430 Author: janus Date: Sat Jun 12 04:02:27 2010 New Revision: 160645 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=160645 Log: 2010-06-12 Janus Weil ja...@gcc.gnu.org PR fortran

[Bug fortran/44430] [4.5/4.6 Regression] Infinite recursion with -fdump-parse-tree

2010-06-11 Thread janus at gcc dot gnu dot org
--- Comment #10 from janus at gcc dot gnu dot org 2010-06-12 04:03 --- Fixed on trunk and 4.5. Closing. -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/40117] [OOP][F2008] Type-bound procedure: allow list after PROCEDURE

2010-06-11 Thread janus at gcc dot gnu dot org
--- Comment #2 from janus at gcc dot gnu dot org 2010-06-12 04:10 --- Subject: Bug 40117 Author: janus Date: Sat Jun 12 04:10:25 2010 New Revision: 160646 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=160646 Log: 2010-06-12 Janus Weil ja...@gcc.gnu.org PR fortran

[Bug fortran/40117] [OOP][F2008] Type-bound procedure: allow list after PROCEDURE

2010-06-11 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2010-06-12 04:12 --- Fixed with r160646. Closing. -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/44207] ICE with ALLOCATABLE components and SOURCE

2010-06-10 Thread janus at gcc dot gnu dot org
--- Comment #5 from janus at gcc dot gnu dot org 2010-06-11 01:42 --- Subject: Bug 44207 Author: janus Date: Fri Jun 11 01:42:38 2010 New Revision: 160589 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=160589 Log: 2010-06-10 Janus Weil ja...@gcc.gnu.org PR fortran

[Bug fortran/42051] [OOP] ICE on array-valued function with CLASS formal argument

2010-06-10 Thread janus at gcc dot gnu dot org
--- Comment #7 from janus at gcc dot gnu dot org 2010-06-11 02:50 --- At r160588 of gfortran 4.6 trunk, the patch in comment #3 fixes the codes in comment #1 and #6, but comment #0 seems to get stuck in some kind of infinite loop. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id

[Bug fortran/42051] [OOP] ICE on array-valued function with CLASS formal argument

2010-06-10 Thread janus at gcc dot gnu dot org
--- Comment #8 from janus at gcc dot gnu dot org 2010-06-11 02:56 --- (In reply to comment #7) At r160588 of gfortran 4.6 trunk, the patch in comment #3 fixes the codes in comment #1 and #6, but comment #0 seems to get stuck in some kind of infinite loop. Btw, it also fixes the test

[Bug fortran/44211] [OOP] ICE with TBP of pointer component of derived type array

2010-06-09 Thread janus at gcc dot gnu dot org
--- Comment #4 from janus at gcc dot gnu dot org 2010-06-09 14:15 --- Subject: Bug 44211 Author: janus Date: Wed Jun 9 14:14:08 2010 New Revision: 160478 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=160478 Log: 2010-06-09 Janus Weil ja...@gcc.gnu.org PR fortran

[Bug fortran/44211] [OOP] ICE with TBP of pointer component of derived type array

2010-06-09 Thread janus at gcc dot gnu dot org
--- Comment #5 from janus at gcc dot gnu dot org 2010-06-09 14:16 --- Fixed with r160478. Closing. -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/44430] [4.5/4.6 Regression] Infinite recursion with -fdump-parse-tree

2010-06-09 Thread janus at gcc dot gnu dot org
--- Comment #8 from janus at gcc dot gnu dot org 2010-06-09 18:38 --- Subject: Bug 44430 Author: janus Date: Wed Jun 9 18:38:11 2010 New Revision: 160504 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=160504 Log: 2010-06-09 Janus Weil ja...@gcc.gnu.org PR fortran

[Bug fortran/44207] ICE with ALLOCATABLE components and SOURCE

2010-06-09 Thread janus at gcc dot gnu dot org
--- Comment #4 from janus at gcc dot gnu dot org 2010-06-09 21:17 --- Here's a quick shot at fixing the ICE: Index: gcc/fortran/resolve.c === --- gcc/fortran/resolve.c (revision 160503) +++ gcc/fortran/resolve.c

[Bug fortran/44207] ICE with ALLOCATABLE components and SOURCE

2010-06-09 Thread janus at gcc dot gnu dot org
-- 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

[Bug fortran/44465] [OOP] ICE with polymorphic object oriented example

2010-06-08 Thread janus at gcc dot gnu dot org
--- Comment #4 from janus at gcc dot gnu dot org 2010-06-08 14:22 --- Actually this seems to be a duplicate of PR 44211. It is fixed by the patch I submitted yesterday: http://gcc.gnu.org/ml/fortran/2010-06/msg00060.html The patch has been approved by Tobias, and I will commit it once

[Bug fortran/44211] [OOP] ICE with TBP of pointer component of derived type array

2010-06-08 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2010-06-08 14:22 --- *** Bug 44465 has been marked as a duplicate of this bug. *** -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/44434] [OOP] ICE in in gfc_add_component_ref

2010-06-07 Thread janus at gcc dot gnu dot org
--- Comment #4 from janus at gcc dot gnu dot org 2010-06-08 01:19 --- The backtrace for comment #3 is: #0 gfc_add_component_ref (e=0x1806e80, name=0x77e7ceb8 doit) at /home/jweil/gcc46/trunk/gcc/fortran/class.c:77 #1 0x0052b323 in resolve_typebound_subroutine (code

[Bug fortran/44211] [OOP] ICE with TBP of pointer component of derived type array

2010-06-07 Thread janus at gcc dot gnu dot org
--- Comment #2 from janus at gcc dot gnu dot org 2010-06-08 02:32 --- Ok, this one took me a while to figure out, but in the end it turns out the fix is actually pretty simple, once you found out where the problem is: Index: gcc/fortran/resolve.c

[Bug fortran/44434] [OOP] ICE in in gfc_add_component_ref

2010-06-06 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2010-06-06 16:16 --- (In reply to comment #2) It looks like a duplicate of the unfixed part of pr43945. It is. One can reduce the test case here to something equivalent to PR 43945 comment #12, which is: module foo_mod type foo

[Bug fortran/43945] [OOP] Derived type with GENERIC: resolved to the wrong specific TBP

2010-06-06 Thread janus at gcc dot gnu dot org
--- Comment #13 from janus at gcc dot gnu dot org 2010-06-06 16:20 --- The remaining issue (comment #4/#11/#12) is being tracked by PR 44434, so this one can be closed. -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/44430] [4.5/4.6 Regression] Infinite recursion with -fdump-parse-tree

2010-06-06 Thread janus at gcc dot gnu dot org
--- Comment #5 from janus at gcc dot gnu dot org 2010-06-06 21:31 --- I'm afraid you're right. r149586 indeed seems to be the culprit. The bug goes away when reverting a part of that commit, more precisely this one: Index: gcc/fortran/resolve.c

[Bug fortran/44430] [4.5/4.6 Regression] Infinite recursion with -fdump-parse-tree

2010-06-06 Thread janus at gcc dot gnu dot org
--- Comment #6 from janus at gcc dot gnu dot org 2010-06-06 21:45 --- A simple way to fix this: Index: gcc/fortran/dump-parse-tree.c === --- gcc/fortran/dump-parse-tree.c (revision 160347) +++ gcc/fortran/dump-parse

[Bug fortran/44430] [4.5/4.6 Regression] Infinite recursion with -fdump-parse-tree

2010-06-06 Thread janus at gcc dot gnu dot org
-- 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

[Bug fortran/44430] [4.5/4.6 Regression] Infinite recursion with -fdump-parse-tree

2010-06-06 Thread janus at gcc dot gnu dot org
--- Comment #7 from janus at gcc dot gnu dot org 2010-06-06 21:50 --- (In reply to comment #5) The bug goes away when reverting a part of that commit Of course simply reverting that part causes a couple of regressions, e.g. proc_ptr_1,10,22 and others. -- http://gcc.gnu.org

[Bug fortran/43945] [OOP] Derived type with GENERIC: resolved to the wrong specific TBP

2010-06-05 Thread janus at gcc dot gnu dot org
--- Comment #9 from janus at gcc dot gnu dot org 2010-06-06 02:04 --- Subject: Bug 43945 Author: janus Date: Sun Jun 6 02:04:04 2010 New Revision: 160335 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=160335 Log: 2010-06-05 Paul Thomas pa...@gcc.gnu.org Janus Weil

[Bug fortran/43945] [OOP] Derived type with GENERIC: resolved to the wrong specific TBP

2010-06-05 Thread janus at gcc dot gnu dot org
--- Comment #10 from janus at gcc dot gnu dot org 2010-06-06 02:28 --- Comment #0 is fixed by r160335, but the ICE in comment #4 is still there. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43945

[Bug fortran/43945] [OOP] Derived type with GENERIC: resolved to the wrong specific TBP

2010-06-05 Thread janus at gcc dot gnu dot org
--- Comment #11 from janus at gcc dot gnu dot org 2010-06-06 02:49 --- Reduced test case for comment #4: module foo_mod type foo contains procedure, pass(a) :: doit generic :: do = doit end type contains subroutine doit(a) class(foo) :: a end subroutine end

[Bug fortran/43945] [OOP] Derived type with GENERIC: resolved to the wrong specific TBP

2010-06-05 Thread janus at gcc dot gnu dot org
--- Comment #12 from janus at gcc dot gnu dot org 2010-06-06 03:02 --- (In reply to comment #11) Reduced test case for comment #4: Even further reduced: module foo_mod type foo contains procedure :: doit generic :: do = doit end type contains subroutine doit

[Bug fortran/43895] [OOP] internal compiler error: verify_ssa failed

2010-06-05 Thread janus at gcc dot gnu dot org
--- Comment #15 from janus at gcc dot gnu dot org 2010-06-06 03:17 --- I guess we can close this, right? -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/41753] [OOP] segfault with -O2 using methods as actual arguments

2010-06-05 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2010-06-06 03:26 --- At r160335, I don't see the failure on x86_64-unknown-linux-gnu. Maybe it has been fixed by some middle-end changes by now. Can anyone confirm that the error is gone? -- http://gcc.gnu.org/bugzilla/show_bug.cgi

[Bug fortran/44065] [OOP] Undefined reference to vtab$...

2010-06-05 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2010-06-06 03:37 --- Here is a related test case (by Salvatore): module s_mat_mod implicit none type :: s_sparse_mat end type contains subroutine s_set_triangle(a) class(s_sparse_mat), intent(inout) :: a end subroutine end

[Bug fortran/44213] ICE when extending abstract type

2010-05-22 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2010-05-22 10:21 --- Subject: Bug 44213 Author: janus Date: Sat May 22 10:21:32 2010 New Revision: 159695 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=159695 Log: 2010-05-22 Janus Weil ja...@gcc.gnu.org PR fortran

[Bug fortran/44213] ICE when extending abstract type

2010-05-22 Thread janus at gcc dot gnu dot org
--- Comment #4 from janus at gcc dot gnu dot org 2010-05-22 10:25 --- Fixed with r159695. Closing. Thanks to Hans for the report! -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/44212] [OOP] ICE when defining a pointer component before defining the class and calling a TBP then

2010-05-22 Thread janus at gcc dot gnu dot org
--- Comment #4 from janus at gcc dot gnu dot org 2010-05-22 19:01 --- Subject: Bug 44212 Author: janus Date: Sat May 22 18:55:53 2010 New Revision: 159745 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=159745 Log: 2010-05-22 Janus Weil ja...@gcc.gnu.org PR fortran

[Bug fortran/44212] [OOP] ICE when defining a pointer component before defining the class and calling a TBP then

2010-05-22 Thread janus at gcc dot gnu dot org
--- Comment #5 from janus at gcc dot gnu dot org 2010-05-22 19:31 --- Fixed with r159745. Closing. -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/44207] ICE with ALLOCATABLE components and SOURCE

2010-05-20 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2010-05-20 18:45 --- Note: The ICE happens with 4.5 and trunk. With 4.4 one gets allocate(this%list(dim),source=[(i,i=1,dim)]) 1 Error: Syntax error in ALLOCATE statement at (1) since support for the SOURCE

[Bug fortran/44211] [OOP] ICE with TBP of pointer component of derived type array

2010-05-20 Thread janus at gcc dot gnu dot org
--- Comment #1 from janus at gcc dot gnu dot org 2010-05-20 19:01 --- Confirmed. Backtrace: Program received signal SIGSEGV, Segmentation fault. 0x00571d67 in gfc_conv_scalarized_array_ref (se=0x7fffd6a0, ar=0x17f6048) at /home/jweil/gcc46/trunk/gcc/fortran/trans-array.c

[Bug fortran/44212] [OOP] ICE when defining a pointer component before defining the class and calling a TBP then

2010-05-20 Thread janus at gcc dot gnu dot org
--- Comment #1 from janus at gcc dot gnu dot org 2010-05-20 19:15 --- Confirmed. I think the code is valid. At least 'A_type' being defined after 'B_type' is not a problem, since the Fortran 2003 standard says: C438 (R440) If the POINTER attribute is not speci#64257;ed for a component

[Bug fortran/44212] [OOP] ICE when defining a pointer component before defining the class and calling a TBP then

2010-05-20 Thread janus at gcc dot gnu dot org
--- Comment #2 from janus at gcc dot gnu dot org 2010-05-20 20:14 --- To fix this, one basically has to defer the generation of the vtype symbol to resolution stage, which is what the following patch does: Index: gcc/fortran/resolve.c

[Bug fortran/44213] ICE when extending abstract type

2010-05-20 Thread janus at gcc dot gnu dot org
--- Comment #1 from janus at gcc dot gnu dot org 2010-05-20 20:24 --- My first feeling was that this would be illegal, but I could not find anything in the standard supporting this feeling. F03 only has the following restrictions: C427 (R429) If the type de#64257;nition contains

[Bug fortran/44213] ICE when extending abstract type

2010-05-20 Thread janus at gcc dot gnu dot org
--- Comment #2 from janus at gcc dot gnu dot org 2010-05-20 20:36 --- The ICE is fixed by this more or less obvious patch: Index: gcc/fortran/resolve.c === --- gcc/fortran/resolve.c (revision 159561) +++ gcc/fortran

[Bug fortran/43895] [OOP] internal compiler error: verify_ssa failed

2010-05-18 Thread janus at gcc dot gnu dot org
--- Comment #10 from janus at gcc dot gnu dot org 2010-05-18 12:19 --- (In reply to comment #9) Btw, after the recent patch for PR43969, this might well be fixed already ... Unfortunately, no, I still get the ICE. Sure. Actually my comment was only targeted towards Tobias

[Bug fortran/44044] [OOP] SELECT TYPE with class-valued function

2010-05-17 Thread janus at gcc dot gnu dot org
--- Comment #6 from janus at gcc dot gnu dot org 2010-05-17 08:25 --- Subject: Bug 44044 Author: janus Date: Mon May 17 08:25:06 2010 New Revision: 159476 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=159476 Log: 2010-05-17 Janus Weil ja...@gcc.gnu.org PR fortran

[Bug fortran/44044] [OOP] SELECT TYPE with class-valued function

2010-05-17 Thread janus at gcc dot gnu dot org
--- Comment #7 from janus at gcc dot gnu dot org 2010-05-17 08:31 --- Comment #0 and #1 are fixed at this point. I think the runtime checking in comment #2 one can ignore for the moment, since most usage cases of ordinary pointers are also not checked for. So the only ToDo item left

[Bug fortran/43990] [OOP] ICE in output_constructor_regular_field, at varasm.c:4995

2010-05-17 Thread janus at gcc dot gnu dot org
--- Comment #7 from janus at gcc dot gnu dot org 2010-05-17 17:41 --- (In reply to comment #6) but it does not fix PR43895 (see comments #3 and #4). ... which I take as an indication that the two are indeed not so much related. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43990

[Bug fortran/43990] [OOP] ICE in output_constructor_regular_field, at varasm.c:4995

2010-05-17 Thread janus at gcc dot gnu dot org
--- Comment #8 from janus at gcc dot gnu dot org 2010-05-17 19:59 --- Subject: Bug 43990 Author: janus Date: Mon May 17 19:58:48 2010 New Revision: 159511 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=159511 Log: 2010-05-17 Janus Weil ja...@gcc.gnu.org PR fortran

[Bug fortran/43990] [OOP] ICE in output_constructor_regular_field, at varasm.c:4995

2010-05-17 Thread janus at gcc dot gnu dot org
--- Comment #9 from janus at gcc dot gnu dot org 2010-05-17 20:05 --- Fixed with r159511. Closing. -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/43895] [OOP] internal compiler error: verify_ssa failed

2010-05-17 Thread janus at gcc dot gnu dot org
--- Comment #8 from janus at gcc dot gnu dot org 2010-05-17 20:35 --- (In reply to comment #7) If one adds b = ALLOCATED(x) one finds: Where do you add this? I don't see a test case where this fits into. Can you give a complete example? Btw, after the recent patch for PR43969

[Bug fortran/44064] [OOP] ICE with file containing two modules and one program

2010-05-17 Thread janus at gcc dot gnu dot org
--- Comment #6 from janus at gcc dot gnu dot org 2010-05-17 21:02 --- Another slight variation: module module_myclass implicit none type :: inner contains procedure :: set end type type :: myclass type(inner) :: slice end type contains

[Bug fortran/43896] [OOP] ICE in gfc_conv_variable, at fortran/trans-expr.c:551

2010-05-16 Thread janus at gcc dot gnu dot org
--- Comment #18 from janus at gcc dot gnu dot org 2010-05-16 20:33 --- (In reply to comment #17) So it seems tht the bug is not gone. I have tried again with version from May 8th and I still get the problem on line 556. Yes, the issue is not fixed yet. The commit in comment #16

[Bug fortran/43990] [OOP] ICE in output_constructor_regular_field, at varasm.c:4995

2010-05-16 Thread janus at gcc dot gnu dot org
--- Comment #5 from janus at gcc dot gnu dot org 2010-05-16 22:11 --- The ICE is fixed by removing this unneeded (and buggy) piece of code: Index: gcc/fortran/trans-expr.c === --- gcc/fortran/trans-expr.c(revision

[Bug fortran/43207] [OOP] ICE for class pointer = null() initialization

2010-05-15 Thread janus at gcc dot gnu dot org
--- Comment #6 from janus at gcc dot gnu dot org 2010-05-15 10:21 --- (In reply to comment #5) Wild shot: has this anything to do with 43969? Actually I don't think so. At least the patch I posted yesterday does not fix PR43969: http://gcc.gnu.org/ml/fortran/2010-05/msg00155.html

[Bug fortran/43969] [OOP] CLASS(foo), ALLOCATABLE component bad initialization

2010-05-15 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2010-05-15 10:25 --- (In reply to comment #1) Created an attachment (id=20542) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20542action=view) [edit] Looking at the dump of this code shows: The $data component of int is being set

[Bug fortran/43969] [OOP] ALLOCATABLE with polymorphic variables

2010-05-15 Thread janus at gcc dot gnu dot org
--- Comment #4 from janus at gcc dot gnu dot org 2010-05-15 10:46 --- Turns out that fixing this one is completely trivial, once you actually have a look at it :) The ALLOCATED intrinsic was just not adjusted to handle CLASS variables yet. The patch is as simple as this: Index: gcc

[Bug fortran/43969] [OOP] ALLOCATED() with polymorphic variables

2010-05-15 Thread janus at gcc dot gnu dot org
--- Comment #6 from janus at gcc dot gnu dot org 2010-05-15 13:52 --- Subject: Bug 43969 Author: janus Date: Sat May 15 13:52:33 2010 New Revision: 159431 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=159431 Log: 2010-05-15 Janus Weil ja...@gcc.gnu.org PR fortran

[Bug fortran/43207] [OOP] ICE for class pointer = null() initialization

2010-05-15 Thread janus at gcc dot gnu dot org
--- Comment #7 from janus at gcc dot gnu dot org 2010-05-15 13:52 --- Subject: Bug 43207 Author: janus Date: Sat May 15 13:52:33 2010 New Revision: 159431 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=159431 Log: 2010-05-15 Janus Weil ja...@gcc.gnu.org PR fortran

[Bug fortran/43207] [OOP] invalid pointer assignment = type%parent

2010-05-15 Thread janus at gcc dot gnu dot org
--- Comment #8 from janus at gcc dot gnu dot org 2010-05-15 14:08 --- r159431 fixes the ICE. Comment #0 is now accepted without an error message. -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/43969] [OOP] ALLOCATED() with polymorphic arrays

2010-05-15 Thread janus at gcc dot gnu dot org
--- Comment #7 from janus at gcc dot gnu dot org 2010-05-15 14:18 --- r159431 fixes the problems with allocatable scalar class variables in comment #1 and #2, and also the wording of the error message reported in comment #5. However, the ALLOCATED intrinsic still gives a gimplification

[Bug fortran/44064] [OOP] ICE with file containing two modules and one program

2010-05-15 Thread janus at gcc dot gnu dot org
--- Comment #5 from janus at gcc dot gnu dot org 2010-05-15 20:02 --- Here is a slightly reduced test case: module module_myclass implicit none type :: inner contains procedure :: set end type type :: myclass type(inner) :: slice end type

[Bug fortran/44154] New: initialization problem with allocatable scalars

2010-05-15 Thread janus at gcc dot gnu dot org
Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: janus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44154

[Bug fortran/44154] initialization problem with allocatable scalars

2010-05-15 Thread janus at gcc dot gnu dot org
--- Comment #1 from janus at gcc dot gnu dot org 2010-05-15 20:43 --- Here is the fix: Index: gcc/fortran/trans-decl.c === --- gcc/fortran/trans-decl.c(revision 159433) +++ gcc/fortran/trans-decl.c(working copy

[Bug fortran/44154] initialization problem with allocatable scalars

2010-05-15 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2010-05-15 22:03 --- Subject: Bug 44154 Author: janus Date: Sat May 15 22:03:09 2010 New Revision: 159445 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=159445 Log: 2010-05-15 Janus Weil ja...@gcc.gnu.org PR fortran

[Bug fortran/42647] Missed initialization/dealloc of allocatable scalar DT with allocatable component

2010-05-15 Thread janus at gcc dot gnu dot org
--- Comment #6 from janus at gcc dot gnu dot org 2010-05-15 22:03 --- Subject: Bug 42647 Author: janus Date: Sat May 15 22:03:09 2010 New Revision: 159445 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=159445 Log: 2010-05-15 Janus Weil ja...@gcc.gnu.org PR fortran

[Bug fortran/44154] initialization problem with allocatable scalars

2010-05-15 Thread janus at gcc dot gnu dot org
--- Comment #4 from janus at gcc dot gnu dot org 2010-05-15 22:05 --- (In reply to comment #2) This PR looks related to pr42647. Thanks for the remark, Dominique. I think they're pretty much identical. The commit (r159445) includes PR42647 comment #2/#3 as a test case. -- janus

[Bug fortran/42647] Missed initialization/dealloc of allocatable scalar DT with allocatable component

2010-05-15 Thread janus at gcc dot gnu dot org
--- Comment #7 from janus at gcc dot gnu dot org 2010-05-15 22:16 --- r159445 should fix all the initialization trouble. Comment #2/#3 has been included as a test case. For the automatic deallocation there is be a problem remaining: In comment #0, a itself is now automatically

[Bug fortran/42647] Missed initialization/dealloc of allocatable scalar DT with allocatable component

2010-05-15 Thread janus at gcc dot gnu dot org
--- Comment #8 from janus at gcc dot gnu dot org 2010-05-15 22:29 --- (In reply to comment #7) For the automatic deallocation there is be a problem remaining: In comment #0, a itself is now automatically deallocated, but not a%d any more. This is fixed by this patchlet (which

[Bug fortran/42769] [OOP] ICE in resolve_typebound_procedure

2010-05-14 Thread janus at gcc dot gnu dot org
--- Comment #23 from janus at gcc dot gnu dot org 2010-05-14 11:53 --- (In reply to comment #22) Janus, is there something left to do here? Yes, sure. The ICE has not been fixed yet. With 4.6 trunk (r159368) I still get the same ICE on comment #8/#14: internal compiler error

[Bug fortran/44131] [OOP] Using polymorphism in modules unware of derived types fails at run-time

2010-05-14 Thread janus at gcc dot gnu dot org
--- Comment #2 from janus at gcc dot gnu dot org 2010-05-14 12:04 --- (In reply to comment #1) Copying your code into uh.f90 gives laptop:kargl[204] gfc4x -o z uh.f90 laptop:kargl[205] ./z Derived DoIt with i686-*-freebsd and x86_64-*-freebsd on trunk. Yes, the failure

[Bug fortran/43207] [OOP] ICE for class pointer = null() initialization

2010-05-14 Thread janus at gcc dot gnu dot org
-- 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

<    1   2   3   4   5   6   7   8   9   10   >