public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/45507] New: [4.6 Regression] Bogus Error: Can't convert TYPE(c_ptr) to INTEGER(4)
@ 2010-09-02 19:32 burnus at gcc dot gnu dot org
2010-09-02 19:45 ` [Bug fortran/45507] " janus at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-09-02 19:32 UTC (permalink / raw)
To: gcc-bugs
Reported at http://gcc.gnu.org/ml/fortran/2010-09/msg00061.html
Working: 163780 / 163718
Failing: 163661 / 163773
Error: Can't convert TYPE(c_ptr) to INTEGER(4)
module filter
use, intrinsic :: iso_c_binding
type :: cType
type(c_ptr) :: accelPtr = c_null_ptr
end type cType
type filterType
type(cType) :: accel
end type filterType
type(filterType), allocatable, dimension(:) :: filters
contains
subroutine load()
allocate(filters(1))
return
end subroutine load
end module filter
--
Summary: [4.6 Regression] Bogus Error: Can't convert TYPE(c_ptr)
to INTEGER(4)
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45507
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/45507] [4.6 Regression] Bogus Error: Can't convert TYPE(c_ptr) to INTEGER(4)
2010-09-02 19:32 [Bug fortran/45507] New: [4.6 Regression] Bogus Error: Can't convert TYPE(c_ptr) to INTEGER(4) burnus at gcc dot gnu dot org
@ 2010-09-02 19:45 ` janus at gcc dot gnu dot org
2010-09-02 19:47 ` burnus 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-09-02 19:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from janus at gcc dot gnu dot org 2010-09-02 19:45 -------
Reduced test case:
use, intrinsic :: iso_c_binding
type :: cType
type(c_ptr) :: accelPtr => c_null_ptr
end type cType
type(cType), allocatable, dimension(:) :: filters
allocate(filters(1))
end
The failure was supposedly introduced by r163744.
--
janus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |janus at gcc dot gnu dot org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2010-09-02 19:45:28
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45507
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/45507] [4.6 Regression] Bogus Error: Can't convert TYPE(c_ptr) to INTEGER(4)
2010-09-02 19:32 [Bug fortran/45507] New: [4.6 Regression] Bogus Error: Can't convert TYPE(c_ptr) to INTEGER(4) burnus at gcc dot gnu dot org
2010-09-02 19:45 ` [Bug fortran/45507] " janus at gcc dot gnu dot org
@ 2010-09-02 19:47 ` burnus at gcc dot gnu dot org
2010-09-02 20:00 ` janus at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-09-02 19:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from burnus at gcc dot gnu dot org 2010-09-02 19:47 -------
Forgot to mention: Initial report and test case was by Andrew Benson (thanks!)
Janus reported that the culprit is Rev. 163744
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=163744
which is the patch for PR fortran/44541
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45507
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/45507] [4.6 Regression] Bogus Error: Can't convert TYPE(c_ptr) to INTEGER(4)
2010-09-02 19:32 [Bug fortran/45507] New: [4.6 Regression] Bogus Error: Can't convert TYPE(c_ptr) to INTEGER(4) burnus at gcc dot gnu dot org
2010-09-02 19:45 ` [Bug fortran/45507] " janus at gcc dot gnu dot org
2010-09-02 19:47 ` burnus at gcc dot gnu dot org
@ 2010-09-02 20:00 ` janus at gcc dot gnu dot org
2010-09-03 10:29 ` 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-09-02 20:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from janus at gcc dot gnu dot org 2010-09-02 19:59 -------
(In reply to comment #1)
> Reduced test case:
Sorry, I messed this one up. Should be:
use, intrinsic :: iso_c_binding
type :: cType
type(c_ptr) :: accelPtr = c_null_ptr
end type cType
type(cType), allocatable, dimension(:) :: filters
allocate(filters(1))
end
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45507
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/45507] [4.6 Regression] Bogus Error: Can't convert TYPE(c_ptr) to INTEGER(4)
2010-09-02 19:32 [Bug fortran/45507] New: [4.6 Regression] Bogus Error: Can't convert TYPE(c_ptr) to INTEGER(4) burnus at gcc dot gnu dot org
` (2 preceding siblings ...)
2010-09-02 20:00 ` janus at gcc dot gnu dot org
@ 2010-09-03 10:29 ` janus at gcc dot gnu dot org
2010-09-04 9:29 ` janus at gcc dot gnu dot org
2010-09-04 9:31 ` janus at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: janus at gcc dot gnu dot org @ 2010-09-03 10:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from janus at gcc dot gnu dot org 2010-09-03 10:29 -------
Mine.
--
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|NEW |ASSIGNED
Last reconfirmed|2010-09-02 19:45:28 |2010-09-03 10:29:14
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45507
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/45507] [4.6 Regression] Bogus Error: Can't convert TYPE(c_ptr) to INTEGER(4)
2010-09-02 19:32 [Bug fortran/45507] New: [4.6 Regression] Bogus Error: Can't convert TYPE(c_ptr) to INTEGER(4) burnus at gcc dot gnu dot org
` (3 preceding siblings ...)
2010-09-03 10:29 ` janus at gcc dot gnu dot org
@ 2010-09-04 9:29 ` janus at gcc dot gnu dot org
2010-09-04 9:31 ` janus at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: janus at gcc dot gnu dot org @ 2010-09-04 9:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from janus at gcc dot gnu dot org 2010-09-04 09:29 -------
Subject: Bug 45507
Author: janus
Date: Sat Sep 4 09:29:11 2010
New Revision: 163856
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=163856
Log:
2010-09-04 Janus Weil <janus@gcc.gnu.org>
PR fortran/45507
* resolve.c (resolve_allocate_expr): Generate default initializers
already at this point, resolve them and put them into expr3, ...
* trans-stmt.c (gfc_trans_allocate): ... instead of waiting until
translation stage.
2010-09-04 Janus Weil <janus@gcc.gnu.org>
PR fortran/45507
* gfortran.dg/allocate_alloc_opt_12.f90: New.
Added:
trunk/gcc/testsuite/gfortran.dg/allocate_alloc_opt_12.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/resolve.c
trunk/gcc/fortran/trans-stmt.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45507
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/45507] [4.6 Regression] Bogus Error: Can't convert TYPE(c_ptr) to INTEGER(4)
2010-09-02 19:32 [Bug fortran/45507] New: [4.6 Regression] Bogus Error: Can't convert TYPE(c_ptr) to INTEGER(4) burnus at gcc dot gnu dot org
` (4 preceding siblings ...)
2010-09-04 9:29 ` janus at gcc dot gnu dot org
@ 2010-09-04 9:31 ` janus at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: janus at gcc dot gnu dot org @ 2010-09-04 9:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from janus at gcc dot gnu dot org 2010-09-04 09:31 -------
Fixed with r163856. Closing.
--
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=45507
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-09-04 9:31 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-02 19:32 [Bug fortran/45507] New: [4.6 Regression] Bogus Error: Can't convert TYPE(c_ptr) to INTEGER(4) burnus at gcc dot gnu dot org
2010-09-02 19:45 ` [Bug fortran/45507] " janus at gcc dot gnu dot org
2010-09-02 19:47 ` burnus at gcc dot gnu dot org
2010-09-02 20:00 ` janus at gcc dot gnu dot org
2010-09-03 10:29 ` janus at gcc dot gnu dot org
2010-09-04 9:29 ` janus at gcc dot gnu dot org
2010-09-04 9:31 ` 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).