: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: m.a.hulsen at tue dot nl
Target Milestone: ---
The code below gives
a.out(78480,0x10ea3f600) malloc: *** error for object 0x7ff8800a8000: pointer
being freed was not allocated
a.out(78480,0x10ea3f600) malloc: *** set
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: m.a.hulsen at tue dot nl
The following code
program t
integer :: ndim=2, ndfp=4, i
print *, (/ ( i, i = 1, ndfp ) /) + ndim
end program t
gives
1 2
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62106
--- Comment #1 from Martien Hulsen m.a.hulsen at tue dot nl ---
It only shows up using optimisation, i.e. -On, with n=1.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47240
--- Comment #17 from Martien Hulsen m.a.hulsen at tue dot nl 2011-01-19
08:34:21 UTC ---
(In reply to comment #16)
Fixed with r168973.
Indeed. Thanks. All my test problems for my FEM code run correctly now with
gfortran.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47240
Summary: segfault with procedure pointer component
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47224
--- Comment #7 from Martien Hulsen m.a.hulsen at tue dot nl 2011-01-10
08:51:19 UTC ---
(In reply to comment #6)
(In reply to comment #4)
I now have a segfault when running the code. Will send a bug report after I
manage to reduce the code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47224
--- Comment #4 from Martien Hulsen m.a.hulsen at tue dot nl 2011-01-09
19:04:27 UTC ---
(In reply to comment #3)
Yes, this fixes the ICE. My full code also compiles now. Thanks.
I now have a segfault when running the code. Will send a bug report
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47224
Summary: ICE with procedure pointer component
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47224
--- Comment #1 from Martien Hulsen m.a.hulsen at tue dot nl 2011-01-09
07:35:28 UTC ---
The second line should be removed. Modified code:
module element_defs_m
type coefficients_t
procedure (dum_vfunc), pointer, nopass :: vfunc = null
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46978
--- Comment #9 from Martien Hulsen m.a.hulsen at tue dot nl 2010-12-23
09:13:05 UTC ---
(In reply to comment #7)
This seems to fix it, though I find it somewhat suspicious.
With this change all my test cases run fine again. Thanks.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46978
Summary: TRANSPOSE corrupts structure and memory
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: fortran
AssignedTo:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46978
--- Comment #2 from Martien Hulsen m.a.hulsen at tue dot nl 2010-12-16
10:33:03 UTC ---
(In reply to comment #1)
with/without '-Ofast -g'. Could you provide the output of 'gfortran -v'?
[mart...@laptop18 ~]$ gfortran -v
Using built-in specs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46841
Summary: ICE on allocate array of procedure pointers
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46841
--- Comment #1 from Martien Hulsen m.a.hulsen at tue dot nl 2010-12-07
18:28:26 UTC ---
Created attachment 22676
-- http://gcc.gnu.org/bugzilla/attachment.cgi?id=22676
source file of module
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46818
Summary: ICE on pointer assignment
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: blocker
Priority: P3
Component: fortran
AssignedTo:
15 matches
Mail list logo