[Bug fortran/38152] ICE for procedure pointer assignment

2008-11-16 Thread janus at gcc dot gnu dot org
--- Comment #2 from janus at gcc dot gnu dot org 2008-11-16 18:59 --- (In reply to comment #1) > By the way, the following also fails: > > module m > procedure(), pointer :: procptr > end module m > > use m > external foo > procptr => foo > end

[Bug fortran/36463] [4.4 regression] gfc_get_default_type(): Bad symbol

2008-11-17 Thread janus at gcc dot gnu dot org
--- Comment #16 from janus at gcc dot gnu dot org 2008-11-17 22:56 --- > I don't know if it is solving the right problem, but at least the testcase in > comment #13 compiles with it. This indeed fixes it. Nice job. Obviously I was looking for the solution in the wrong plac

[Bug fortran/38290] ICE with invalid proc-pointer

2008-11-27 Thread janus at gcc dot gnu dot org
--- Comment #1 from janus at gcc dot gnu dot org 2008-11-27 22:09 --- The test case can be further compressed to a 3-liner procedure( up ) :: p call p end and is fixed by the following simple patch Index: gcc/fortran/resolve.c

[Bug fortran/38289] "procedure( ), pointer" rejected

2008-11-27 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2008-11-27 22:16 --- (In reply to comment #2) > Is this enough? I guess so :) -- janus at gcc dot gnu dot org changed: What|Removed |Ad

[Bug fortran/38290] ICE with invalid proc-pointer

2008-11-27 Thread janus at gcc dot gnu dot org
--- Comment #2 from janus at gcc dot gnu dot org 2008-11-27 22:50 --- I also tried to compile the other procptr examples from the WikiBooks page, which is linked in comment #0. The only remaining problem I found was: program bsp implicit none abstract interface subroutine

[Bug fortran/36463] gfc_get_default_type(): Bad symbol

2008-11-28 Thread janus at gcc dot gnu dot org
--- Comment #19 from janus at gcc dot gnu dot org 2008-11-28 11:54 --- Since comment #13 is fixed, this should not be labeled a regression any more I guess. Are there still problems with comment #12 (apart from PR35810), or can we close this PR? -- janus at gcc dot gnu dot org

[Bug fortran/36463] gfc_get_default_type(): Bad symbol

2008-11-28 Thread janus at gcc dot gnu dot org
--- Comment #22 from janus at gcc dot gnu dot org 2008-11-28 13:47 --- (In reply to comment #21) > We could as well add James' gptr as a test case for a procedure pointer PR > (there is probably one?). Yeah, it's PR 36704. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36463

[Bug fortran/36704] Procedure pointer as function result

2008-11-28 Thread janus at gcc dot gnu dot org
--- Comment #1 from janus at gcc dot gnu dot org 2008-11-28 21:26 --- Btw the examples in comment #0 slightly miss the point, since they lack the POINTER attribute. Correct version: function foo() result(bar) procedure(),pointer :: bar and function foo() procedure(),pointer

[Bug fortran/36463] gfc_get_default_type(): Bad symbol

2008-11-29 Thread janus at gcc dot gnu dot org
--- Comment #23 from janus at gcc dot gnu dot org 2008-11-29 11:25 --- Closing. -- janus at gcc dot gnu dot org changed: What|Removed |Added Status|NEW

[Bug fortran/38289] "procedure( ), pointer" rejected

2008-11-29 Thread janus at gcc dot gnu dot org
--- Comment #4 from janus at gcc dot gnu dot org 2008-11-29 13:38 --- Subject: Bug 38289 Author: janus Date: Sat Nov 29 13:36:35 2008 New Revision: 142276 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142276 Log: 2008-11-29 Janus Weil <[EMAIL PROTECTED]>

[Bug fortran/38290] ICE with invalid proc-pointer

2008-11-29 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2008-11-29 13:38 --- Subject: Bug 38290 Author: janus Date: Sat Nov 29 13:36:35 2008 New Revision: 142276 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142276 Log: 2008-11-29 Janus Weil <[EMAIL PROTECTED]>

[Bug fortran/38289] "procedure( ), pointer" rejected

2008-11-29 Thread janus at gcc dot gnu dot org
--- Comment #5 from janus at gcc dot gnu dot org 2008-11-29 13:39 --- Fixed with r142276. Closing. -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/37254] Reject valid PROCEDURE statement with implicit interface

2008-11-30 Thread janus at gcc dot gnu dot org
--- Comment #6 from janus at gcc dot gnu dot org 2008-11-30 12:28 --- I'm not sure the codes in comment #1 and #3 are actually valid, or if gfortran is right to reject them. See also PR33162 comment #9, where Jerry concludes that a similar thing should be rejected (this is proc_d

[Bug fortran/37254] Reject valid PROCEDURE statement with implicit interface

2008-11-30 Thread janus at gcc dot gnu dot org
--- Comment #7 from janus at gcc dot gnu dot org 2008-11-30 17:42 --- Regarding the validity see also http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/5d2154a34072eb72/d9d7f1edde9aaa5b -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37254

[Bug fortran/36704] Procedure pointer as function result

2008-11-30 Thread janus at gcc dot gnu dot org
--- Comment #2 from janus at gcc dot gnu dot org 2008-11-30 17:50 --- Created an attachment (id=16793) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16793&action=view) patch v1 Attached is a minimal patch, which makes the simple case work where a separate result variable

[Bug fortran/36704] Procedure pointer as function result

2008-11-30 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2008-11-30 22:00 --- Created an attachment (id=16795) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16795&action=view) patch v2 This updated patch passes the testsuite without regressions and adds some additional

[Bug fortran/38290] procedure pointer assignment checking

2008-12-02 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/38290] procedure pointer assignment checking

2008-12-02 Thread janus at gcc dot gnu dot org
--- Comment #4 from janus at gcc dot gnu dot org 2008-12-02 11:59 --- Subject: Bug 38290 Author: janus Date: Tue Dec 2 11:58:16 2008 New Revision: 142351 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142351 Log: 2008-12-02 Janus Weil <[EMAIL PROTECTED]>

[Bug fortran/38290] procedure pointer assignment checking

2008-12-02 Thread janus at gcc dot gnu dot org
--- Comment #5 from janus at gcc dot gnu dot org 2008-12-02 12:02 --- Fixed with r142351. Closing. -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/36704] Procedure pointer as function result

2008-12-02 Thread janus at gcc dot gnu dot org
--- Comment #4 from janus at gcc dot gnu dot org 2008-12-02 11:59 --- Subject: Bug 36704 Author: janus Date: Tue Dec 2 11:58:16 2008 New Revision: 142351 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142351 Log: 2008-12-02 Janus Weil <[EMAIL PROTECTED]>

[Bug fortran/38415] New: procedure pointer assignment to abstract interface

2008-12-05 Thread janus at gcc dot gnu dot org
dBy: janus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38415

[Bug fortran/38415] procedure pointer assignment to abstract interface

2008-12-05 Thread janus at gcc dot gnu dot org
--- Comment #1 from janus at gcc dot gnu dot org 2008-12-05 18:48 --- Btw ifort 11 accepts this, while the g95 version I have (from Sep. 5 2008) gives an ICE. -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/38415] procedure pointer assignment to abstract interface

2008-12-06 Thread janus at gcc dot gnu dot org
--- Comment #2 from janus at gcc dot gnu dot org 2008-12-06 12:17 --- Subject: Bug 38415 Author: janus Date: Sat Dec 6 12:15:49 2008 New Revision: 142520 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142520 Log: 2008-12-06 Janus Weil <[EMAIL PROTECTED]>

[Bug fortran/38415] procedure pointer assignment to abstract interface

2008-12-06 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2008-12-06 12:18 --- Fixed with r142520. Closing. -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/38290] procedure pointer assignment checking

2008-12-06 Thread janus at gcc dot gnu dot org
--- Comment #6 from janus at gcc dot gnu dot org 2008-12-06 12:23 --- Reopening. The check for comparing the interfaces was taken out again in r142520, since there were problems with intrinsics. Details will follow. -- janus at gcc dot gnu dot org changed: What

[Bug fortran/38290] procedure pointer assignment checking

2008-12-06 Thread janus at gcc dot gnu dot org
--- Comment #8 from janus at gcc dot gnu dot org 2008-12-06 13:57 --- Created an attachment (id=16841) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16841&action=view) patch v1 Here is a draft patch which correctly copies the typespec and formal args for a PROCEDURE st

[Bug fortran/38152] ICE for procedure pointer assignment

2009-01-15 Thread janus at gcc dot gnu dot org
--- Comment #8 from janus at gcc dot gnu dot org 2009-01-15 22:56 --- Created an attachment (id=17110) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17110&action=view) patch Here is a patch which fixes the testcases in comment #0, #1 and #7. Dominique: Maybe you coul

[Bug fortran/36704] Procedure pointer as function result

2009-01-16 Thread janus at gcc dot gnu dot org
--- Comment #5 from janus at gcc dot gnu dot org 2009-01-16 09:42 --- Further test cases: http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/e0d04d755453a2a5 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36704

[Bug fortran/38152] [4.4 Regression] procedure pointers as module variables

2009-01-16 Thread janus at gcc dot gnu dot org
--- Comment #10 from janus at gcc dot gnu dot org 2009-01-16 12:04 --- Subject: Bug 38152 Author: janus Date: Fri Jan 16 12:03:51 2009 New Revision: 143430 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143430 Log: 2009-01-16 Janus Weil PR fortr

[Bug fortran/38152] [4.4 Regression] procedure pointers as module variables

2009-01-16 Thread janus at gcc dot gnu dot org
--- Comment #11 from janus at gcc dot gnu dot org 2009-01-16 12:30 --- This PR can be closed, provided there are no remaining issues on darwin9 (see comment #4 and #5). I cannot check this myself (since I don't have access to a darwin system), but maybe Dominique can? -- jan

[Bug fortran/39998] Procedure Pointer Assignments: Statement Functions & Internal Functions

2009-05-05 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/39996] Double typing of function results not detected

2009-05-05 Thread janus at gcc dot gnu dot org
--- Comment #1 from janus at gcc dot gnu dot org 2009-05-05 20:35 --- Extended test case, including six similar cases, of which only the first three are detected (comment #0 corresponds to case 'E'): ! Detected: interface real function A () end function end

[Bug fortran/39998] Procedure Pointer Assignments: Statement Functions & Internal Functions

2009-05-05 Thread janus at gcc dot gnu dot org
--- Comment #1 from janus at gcc dot gnu dot org 2009-05-05 20:41 --- Subject: Bug 39998 Author: janus Date: Tue May 5 20:41:00 2009 New Revision: 147133 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147133 Log: 2009-05-05 Janus Weil PR fortr

[Bug fortran/39998] Procedure Pointer Assignments: Statement Functions & Internal Functions

2009-05-05 Thread janus at gcc dot gnu dot org
--- Comment #2 from janus at gcc dot gnu dot org 2009-05-05 20:47 --- Fixed in r147133. Closing. -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/40039] New: Procedures as actual arguments: Check intent of arguments

2009-05-06 Thread janus at gcc dot gnu dot org
al Priority: P3 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=40039

[Bug fortran/40045] New: ICE with type extension and -fdump-parse-tree

2009-05-06 Thread janus at gcc dot gnu dot org
Severity: normal Priority: P3 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=40045

[Bug fortran/40045] ICE with type extension and -fdump-parse-tree

2009-05-06 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2009-05-06 14:58 --- (In reply to comment #2) > and the interesting question is: Why is it called? There are no type-bound > procedures (and also no components [except of t2%t]. If it's a regression it may be caused by Danie

[Bug fortran/39630] Fortran 2003: Procedure Pointer Components

2009-05-06 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2009-05-06 21:17 --- Subject: Bug 39630 Author: janus Date: Wed May 6 21:17:16 2009 New Revision: 147206 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147206 Log: 2009-05-06 Janus Weil Paul Thomas

[Bug fortran/39630] Fortran 2003: Procedure Pointer Components

2009-05-06 Thread janus at gcc dot gnu dot org
--- Comment #4 from janus at gcc dot gnu dot org 2009-05-06 21:23 --- Status: r147206 implements PPCs with NOPASS, but PASS is still missing ... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39630

[Bug fortran/39876] module procedure name that collides with the GNU intrinsic

2009-05-06 Thread janus at gcc dot gnu dot org
--- Comment #4 from janus at gcc dot gnu dot org 2009-05-06 22:07 --- > From the little I understand 'external' should not be set to 1 for functions > listed as intrinsics but not f95 intrinsics. I don't see any reason why 'erfc' should get the EXTERNA

[Bug fortran/40054] New: Fortran 2008: Pointer functions as lvalue

2009-05-07 Thread janus at gcc dot gnu dot org
d at gcc dot gnu dot org ReportedBy: janus at gcc dot gnu dot org OtherBugsDependingO 39627 nThis: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40054

[Bug fortran/39876] module procedure name that collides with the GNU intrinsic

2009-05-07 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/40039] Procedures as actual arguments: Check intent of arguments

2009-05-07 Thread janus at gcc dot gnu dot org
--- Comment #2 from janus at gcc dot gnu dot org 2009-05-07 21:44 --- Here is a preliminary patch which correctly rejects the code in comment #0: Index: gcc/fortran/interface.c === --- gcc/fortran/interface.c (revision

[Bug fortran/39876] module procedure name that collides with the GNU intrinsic

2009-05-08 Thread janus at gcc dot gnu dot org
--- Comment #5 from janus at gcc dot gnu dot org 2009-05-08 09:08 --- Subject: Bug 39876 Author: janus Date: Fri May 8 09:08:13 2009 New Revision: 147279 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147279 Log: 2009-05-08 Janus Weil PR fortr

[Bug fortran/39876] module procedure name that collides with the GNU intrinsic

2009-05-08 Thread janus at gcc dot gnu dot org
--- Comment #6 from janus at gcc dot gnu dot org 2009-05-08 09:11 --- Fixed with r147279. Closing. -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/39996] Double typing of function results not detected

2009-05-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/40089] New: Public type with public component which has a private type

2009-05-10 Thread janus at gcc dot gnu dot org
Severity: normal Priority: P3 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=40089

[Bug fortran/40089] Public type with public component which has a private type

2009-05-11 Thread janus at gcc dot gnu dot org
--- Comment #2 from janus at gcc dot gnu dot org 2009-05-11 08:23 --- > Thus I would reason that g95, ifort and NAG (assuming Juergen Reuter is using > it) are correct in accepting it. NAG indeed accepts it with -f2003. With -f95 it reports Extension: c0.f90, line 32: Dummy

[Bug fortran/40089] Public type with public component which has a private type

2009-05-11 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2009-05-11 09:55 --- Actually gfortran even has the same check as NAG that rejects a private type as component of a public type with -std=f95. And it happens that the bug which leads to the bogus error message lies just in this check

[Bug fortran/40089] Public type with public component which has a private type

2009-05-11 Thread janus at gcc dot gnu dot org
--- Comment #5 from janus at gcc dot gnu dot org 2009-05-11 14:14 --- Subject: Bug 40089 Author: janus Date: Mon May 11 14:14:38 2009 New Revision: 147379 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147379 Log: 2009-05-11 Janus Weil PR fortr

[Bug fortran/40089] Public type with public component which has a private type

2009-05-11 Thread janus at gcc dot gnu dot org
--- Comment #6 from janus at gcc dot gnu dot org 2009-05-11 14:19 --- Fixed with r147379. Closing. -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/40039] Procedures as actual arguments: Check intent of arguments

2009-05-13 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2009-05-13 17:15 --- > FAIL: gfortran.dg/interface_19.f90 -O0 (test for excess errors) > FAIL: gfortran.dg/proc_ptr_result_1.f90 -O0 (test for excess errors) > > The last of these three test cases is probably invalid

[Bug fortran/39996] Double typing of function results not detected

2009-05-14 Thread janus at gcc dot gnu dot org
--- Comment #2 from janus at gcc dot gnu dot org 2009-05-14 09:42 --- Subject: Bug 39996 Author: janus Date: Thu May 14 09:41:41 2009 New Revision: 147528 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147528 Log: 2009-05-14 Janus Weil PR fortr

[Bug fortran/39996] Double typing of function results not detected

2009-05-14 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2009-05-14 09:46 --- Fixed with r147528. Closing. -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/40164] New: Fortran 2003: "Arrays of procedure pointers"

2009-05-15 Thread janus at gcc dot gnu dot org
org ReportedBy: janus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40164

[Bug fortran/40164] Fortran 2003: "Arrays of procedure pointers"

2009-05-15 Thread janus at gcc dot gnu dot org
--- Comment #1 from janus at gcc dot gnu dot org 2009-05-15 21:51 --- Here is a small patch which fixes the test case: Index: gcc/fortran/primary.c === --- gcc/fortran/primary.c (revision 147527) +++ gcc/fortran

[Bug fortran/40164] Fortran 2003: "Arrays of procedure pointers" (using PPCs)

2009-05-16 Thread janus at gcc dot gnu dot org
--- Comment #2 from janus at gcc dot gnu dot org 2009-05-16 14:09 --- Adding in the test case a line like print *, f_array(1)%f(3.,5.) produces a segfault in gfc_conv_scalarized_array_ref (trans-array.c, 2414). -- janus at gcc dot gnu dot org changed: What|Removed

[Bug fortran/40176] New: Fortran 2003: Procedure pointers with array return value

2009-05-17 Thread janus at gcc dot gnu dot org
5.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 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=40176

[Bug fortran/40176] Fortran 2003: Procedure pointers with array return value

2009-05-17 Thread janus at gcc dot gnu dot org
--- Comment #1 from janus at gcc dot gnu dot org 2009-05-17 14:13 --- -fdump-parse-tree yields: triple (struct array1_real(kind=4) & __result, real(kind=4) & a, real(kind=4) & b) { ... } real(kind=4) (*) (real(kind=4) &, real(kind=4) &) f; f = (real(kind

[Bug fortran/36947] Attributes not fully checked comparing actual vs dummy procedure

2009-05-18 Thread janus at gcc dot gnu dot org
--- Comment #6 from janus at gcc dot gnu dot org 2009-05-18 09:19 --- Subject: Bug 36947 Author: janus Date: Mon May 18 09:19:20 2009 New Revision: 147655 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147655 Log: 2009-05-18 Janus Weil PR fortran/36947

[Bug fortran/40039] Procedures as actual arguments: Check intent of arguments

2009-05-18 Thread janus at gcc dot gnu dot org
--- Comment #4 from janus at gcc dot gnu dot org 2009-05-18 09:19 --- Subject: Bug 40039 Author: janus Date: Mon May 18 09:19:20 2009 New Revision: 147655 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147655 Log: 2009-05-18 Janus Weil PR fortran/36947

[Bug fortran/40039] Procedures as actual arguments: Check intent of arguments

2009-05-18 Thread janus at gcc dot gnu dot org
--- Comment #5 from janus at gcc dot gnu dot org 2009-05-18 09:28 --- The commit in comment #4 implements the basic checking of the intents. ToDo: * Improve the error message, which is currently just "Type/rank mismatch in argument ...". Should specify exactly what is no

[Bug fortran/36947] Attributes not fully checked comparing actual vs dummy procedure

2009-05-18 Thread janus at gcc dot gnu dot org
--- Comment #7 from janus at gcc dot gnu dot org 2009-05-18 09:36 --- The commit in comment #6 implements the checking for intents. ToDo: * check for OPTIONAL * better error messages * recursive check (see comment #2) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36947

[Bug fortran/40176] Fortran 2003: Procedure pointers with array return value

2009-05-18 Thread janus at gcc dot gnu dot org
--- Comment #2 from janus at gcc dot gnu dot org 2009-05-18 12:28 --- This test case with 'dynamic' array size produces a gimplification error: PROGRAM test_prog ABSTRACT INTERFACE FUNCTION fn_template(n,x) RESULT(y) INTEGER, INTENT(in) :: n REAL, INTENT(in) :: x(

[Bug fortran/40164] Fortran 2003: "Arrays of procedure pointers" (using PPCs)

2009-05-18 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2009-05-18 14:45 --- Subject: Bug 40164 Author: janus Date: Mon May 18 14:44:55 2009 New Revision: 147663 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147663 Log: 2009-05-18 Janus Weil PR fortr

[Bug fortran/40164] Fortran 2003: "Arrays of procedure pointers" (using PPCs)

2009-05-18 Thread janus at gcc dot gnu dot org
--- Comment #4 from janus at gcc dot gnu dot org 2009-05-18 14:47 --- Fixed with r147663. Closing. -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/40176] Fortran 2003: Procedure pointers with array return value

2009-05-18 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2009-05-18 16:59 --- Comment #0 is fixed by the following one-liner patch: Index: gcc/fortran/resolve.c === --- gcc/fortran/resolve.c (revision 147663) +++ gcc/fortran

[Bug fortran/40176] Fortran 2003: Procedure pointers with array return value

2009-05-25 Thread janus at gcc dot gnu dot org
--- Comment #4 from janus at gcc dot gnu dot org 2009-05-25 14:48 --- Subject: Bug 40176 Author: janus Date: Mon May 25 14:48:24 2009 New Revision: 147850 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147850 Log: 2009-05-25 Janus Weil PR fortr

[Bug fortran/40427] New: [F03] Procedure Pointer Components with OPTIONAL arguments

2009-06-12 Thread janus at gcc dot gnu dot org
uct: gcc Version: 4.5.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 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=40427

[Bug fortran/40176] Fortran 2003: Procedure pointers with array return value

2009-06-12 Thread janus at gcc dot gnu dot org
--- Comment #7 from janus at gcc dot gnu dot org 2009-06-12 20:39 --- Subject: Bug 40176 Author: janus Date: Fri Jun 12 20:39:39 2009 New Revision: 148440 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148440 Log: 2009-06-12 Janus Weil PR fortr

[Bug fortran/40176] Fortran 2003: Procedure pointers with array return value

2009-06-12 Thread janus at gcc dot gnu dot org
--- Comment #8 from janus at gcc dot gnu dot org 2009-06-12 20:45 --- The remaining issue from comment #5 has been fixed with the commit in comment #7. So this can be closed. -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/36947] Attributes not fully checked comparing actual vs dummy procedure

2009-06-12 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/40427] [F03] Procedure Pointer Components with OPTIONAL arguments

2009-06-13 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/40450] New: [F03] procedure pointer as actual argument

2009-06-15 Thread janus at gcc dot gnu dot org
ority: P3 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=40450

[Bug fortran/40039] Procedures as actual arguments: Check intent of arguments

2009-06-16 Thread janus at gcc dot gnu dot org
--- Comment #6 from janus at gcc dot gnu dot org 2009-06-16 09:06 --- Subject: Bug 40039 Author: janus Date: Tue Jun 16 09:06:13 2009 New Revision: 148519 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148519 Log: 2009-06-16 Janus Weil PR fortran/36947

[Bug fortran/36947] Attributes not fully checked comparing actual vs dummy procedure

2009-06-16 Thread janus at gcc dot gnu dot org
--- Comment #9 from janus at gcc dot gnu dot org 2009-06-16 09:06 --- Subject: Bug 36947 Author: janus Date: Tue Jun 16 09:06:13 2009 New Revision: 148519 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148519 Log: 2009-06-16 Janus Weil PR fortran/36947

[Bug fortran/36947] Attributes not fully checked comparing actual vs dummy procedure

2009-06-16 Thread janus at gcc dot gnu dot org
--- Comment #10 from janus at gcc dot gnu dot org 2009-06-16 09:14 --- >From the ToDo items in comment #7, r148519 fixes the first two (check for optional and better error messages). The remaining item (recursive check) is tracked by PR 40453, so I think this PR can be clo

[Bug fortran/40039] Procedures as actual arguments: Check intent of arguments

2009-06-16 Thread janus at gcc dot gnu dot org
--- Comment #7 from janus at gcc dot gnu dot org 2009-06-16 09:17 --- r148519 improves the error messages (besides adding a check for optional), so the remaining ToDo item for this PR is: Fixing the intents of non-std intrinsics (which are currently all intent(in)). -- http

[Bug fortran/40461] Interface mismatch in dummy procedure

2009-06-16 Thread janus at gcc dot gnu dot org
--- Comment #2 from janus at gcc dot gnu dot org 2009-06-16 17:50 --- (In reply to comment #0) > This is presumably connected with PR 36947/40039 written by Janus Weil. Indeed. > I don't know whether the error message is valid. It surely is, since the interfaces of your

[Bug fortran/40451] procedure-pointer assignment rejected

2009-06-17 Thread janus at gcc dot gnu dot org
--- Comment #2 from janus at gcc dot gnu dot org 2009-06-17 08:33 --- The test case is also rejected without being inside a module: contains function f() intrinsic :: sin procedure(sin), pointer :: f f => sin end function f end However, if the 'contains' i

[Bug fortran/40451] [F03] procedure pointer assignment rejected

2009-06-17 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2009-06-17 08:54 --- The error also goes away if 'implicit none' is inserted. -- janus at gcc dot gnu dot org changed: What|Removed

[Bug fortran/40451] [F03] procedure pointer assignment rejected

2009-06-17 Thread janus at gcc dot gnu dot org
--- Comment #4 from janus at gcc dot gnu dot org 2009-06-17 09:26 --- Mine. Here's a patch: Index: gcc/fortran/symbol.c === --- gcc/fortran/symbol.c(revision 148518) +++ gcc/fortran/symbol.c(working

[Bug fortran/40451] [F03] procedure pointer assignment rejected

2009-06-18 Thread janus at gcc dot gnu dot org
--- Comment #5 from janus at gcc dot gnu dot org 2009-06-18 08:09 --- Subject: Bug 40451 Author: janus Date: Thu Jun 18 08:09:40 2009 New Revision: 148652 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148652 Log: 2009-06-18 Janus Weil PR fortr

[Bug fortran/40451] [F03] procedure pointer assignment rejected

2009-06-18 Thread janus at gcc dot gnu dot org
--- Comment #6 from janus at gcc dot gnu dot org 2009-06-18 08:13 --- Fixed with r148652. Closing. -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/40450] [F03] procedure pointer as actual argument

2009-06-18 Thread janus at gcc dot gnu dot org
--- Comment #1 from janus at gcc dot gnu dot org 2009-06-18 20:27 --- Here is a preliminary patch which fixes the test case: Index: gcc/fortran/trans-expr.c === --- gcc/fortran/trans-expr.c(revision 148651) +++ gcc

[Bug fortran/40450] [F03] procedure pointer as actual argument

2009-06-19 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2009-06-19 08:11 --- Subject: Bug 40450 Author: janus Date: Fri Jun 19 08:11:21 2009 New Revision: 148690 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148690 Log: 2009-06-19 Janus Weil PR fortr

[Bug fortran/40450] [F03] procedure pointer as actual argument

2009-06-19 Thread janus at gcc dot gnu dot org
--- Comment #4 from janus at gcc dot gnu dot org 2009-06-19 08:16 --- Fixed with r148690. Closing. -- janus at gcc dot gnu dot org changed: What|Removed |Added

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

2009-06-19 Thread janus at gcc dot gnu dot org
-- janus at gcc dot gnu dot org changed: What|Removed |Added OtherBugsDependingO||39627 nThis

[Bug fortran/39850] Too strict checking for procedures as actual argument

2009-06-20 Thread janus at gcc dot gnu dot org
--- Comment #1 from janus at gcc dot gnu dot org 2009-06-20 14:11 --- After the improvement of error messages, the test case gives: Error: Interface mismatch in dummy procedure 'a' at (1): 'func' is not a function Mine. -- janus at gcc dot gnu dot org chang

[Bug fortran/39850] Too strict checking for procedures as actual argument

2009-06-20 Thread janus at gcc dot gnu dot org
--- Comment #2 from janus at gcc dot gnu dot org 2009-06-20 14:41 --- Btw, if comment #0 is correct, then the test case 'interface_21.f90' is wrong (that is: the test case itself is legal, but the dg-error is wrong). It was added by Jerry DeLisle in r129799, in connection wi

[Bug fortran/39850] Too strict checking for procedures as actual argument

2009-06-20 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2009-06-20 15:17 --- (In reply to comment #2) > Btw, if comment #0 is correct, then the test case 'interface_21.f90' is wrong Same goes for proc_decl_8.f90. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39850

[Bug fortran/39850] Too strict checking for procedures as actual argument

2009-06-21 Thread janus at gcc dot gnu dot org
--- Comment #5 from janus at gcc dot gnu dot org 2009-06-21 19:05 --- Subject: Bug 39850 Author: janus Date: Sun Jun 21 19:05:35 2009 New Revision: 148767 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148767 Log: 2009-06-21 Janus Weil PR fortr

[Bug fortran/39850] Too strict checking for procedures as actual argument

2009-06-21 Thread janus at gcc dot gnu dot org
--- Comment #6 from janus at gcc dot gnu dot org 2009-06-21 19:16 --- Fixed with r148767. Closing. -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/39850] Too strict checking for procedures as actual argument

2009-06-22 Thread janus at gcc dot gnu dot org
--- Comment #8 from janus at gcc dot gnu dot org 2009-06-22 09:04 --- > pr39850.f90:12:0: internal compiler error: in gfc_typenode_for_spec, at > fortran/trans-types.c:995 Yeah, the same happens for the examples in PR37254. I didn't notice it before, since I changed th

[Bug fortran/37254] Reject valid PROCEDURE statement with implicit interface

2009-06-22 Thread janus at gcc dot gnu dot org
--- Comment #8 from janus at gcc dot gnu dot org 2009-06-22 21:02 --- Subject: Bug 37254 Author: janus Date: Mon Jun 22 21:02:19 2009 New Revision: 148816 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148816 Log: 2009-06-22 Janus Weil PR fortran/37254

[Bug fortran/39850] Too strict checking for procedures as actual argument

2009-06-22 Thread janus at gcc dot gnu dot org
--- Comment #10 from janus at gcc dot gnu dot org 2009-06-22 21:02 --- Subject: Bug 39850 Author: janus Date: Mon Jun 22 21:02:19 2009 New Revision: 148816 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148816 Log: 2009-06-22 Janus Weil PR fortran/37254

[Bug fortran/37254] Reject valid PROCEDURE statement with implicit interface

2009-06-22 Thread janus at gcc dot gnu dot org
--- Comment #9 from janus at gcc dot gnu dot org 2009-06-22 21:08 --- r148816 fixes comment #1 and #3. The errors in comment #4 are justified, since subroutines and functions are mixed. So I think this can be closed if there are no further problems. -- janus at gcc dot gnu dot org

[Bug fortran/37254] Reject valid PROCEDURE statement with implicit interface

2009-06-22 Thread janus at gcc dot gnu dot org
--- Comment #10 from janus at gcc dot gnu dot org 2009-06-22 21:28 --- Subject: Bug 37254 Author: janus Date: Mon Jun 22 21:28:34 2009 New Revision: 148817 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148817 Log: 2009-06-22 Janus Weil PR fortr

[Bug fortran/38894] c_f_procpointer/c_f_pointer - add missing argument checking

2009-06-22 Thread janus at gcc dot gnu dot org
--- Comment #2 from janus at gcc dot gnu dot org 2009-06-22 21:56 --- The missing checks are due to the following code in interface.c (compare_parameter): if (formal->ts.type == BT_DERIVED && formal->ts.derived && formal->ts.derived->ts.is_is

[Bug fortran/38894] c_f_procpointer/c_f_pointer - add missing argument checking

2009-06-22 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2009-06-22 22:21 --- This patch gives the correct error messages for comment #1, while avoiding the testsuite failure of iso_c_binding_rename_1.f03: Index: gcc/fortran/interface.c

  1   2   3   4   5   6   7   8   9   10   >