https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63529

--- Comment #3 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
On Tue, Oct 14, 2014 at 12:49:52AM +0000, russelldub at gmail dot com wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63529
> 
> --- Comment #2 from russelldub at gmail dot com ---
> (In reply to kargl from comment #1)
> > (In reply to russelldub from comment #0)
> > > 
> > > > gfortran -fcray-pointer cray_ptr_issue1.f90
> > > cray_ptr_issue.f90:7.6:
> > > 
> > >   USE PTR_MOD
> > >       1
> > > Error: Assumed size array at (1) must be a dummy argument
> > 
> > Error makes more sense if compiled without -fcray-pointer.
> > 
> 
> I suppose, but I'm using cray pointers, so I would expect to include
> the flag, and shouldn't assumed size arrays be allowed?  What's the
> correct syntax if so.
>  (This works with ifort.)

With ifort, are you compiling with whatever flag enforces
standards conformance.  I need to go hunting through the
standard to see if assumed size arrays are allowed in the
declaration section of a module.

>>> Scratch head.  Change "REAL :: ptee1(*)" to REAL :: ptee1(10)".
>>> 
>>>> gfortran -fcray-pointer cray_ptr_issue2.f90
>>> f951: internal compiler error: backend decl for module variable ptr1 already
>>> exists
>> 
>> Which operating system?  It compiles and executes for me on
>> x86_64-*-freebsd with 5.0, 4.9.3, and 4.8.something.
> 
> RHEL derivative on x86_64, tried 4.4.6, 4.6.1, 4.7.1, 4.8.2,
> and 4.9.0.  No ICE on Fedora 20 x86_64 with gcc-4.8.3.  Can try
> my Ubuntu laptop later if necessary.

Hmmm, this smells like a 'used after free' issue.  Do you
have valgrind on the system where the failure occurs? That
might point at the smoking gun.

Reply via email to