Re: [Patch, fortran] PR64921 class_allocate_18 failure

2015-07-29 Thread Steve Kargl
On Wed, Jul 29, 2015 at 09:50:16PM +0200, Uros Bizjak wrote: > > Please also add the testcase from the PR, Comment #14 [1]. The failure > mode of this problem is a difficult to detect invalid read in > class_allocate_18, but the testcase from the PR outright crashes. > > [1] https://gcc.gnu.org/b

Re: [Patch, fortran] PR64921 class_allocate_18 failure

2015-07-29 Thread Uros Bizjak
Hello! > I submit the PR64921 fix I posted two days ago on bugzilla. > > The problem comes from the finalization wrapper not having the > always_explicit attribute set, so > that when it is called, the array argument is passed without descriptor, but > the argument > declaration is a descriptor

[Patch, fortran] PR64921 class_allocate_18 failure

2015-07-29 Thread Mikael Morin
Hello, I submit the PR64921 fix I posted two days ago on bugzilla. The problem comes from the finalization wrapper not having the always_explicit attribute set, so that when it is called, the array argument is passed without descriptor, but the argument declaration is a descriptor array. Boom