[Bug fortran/37039] Cray pointer with pointee DIMENSION statement after POINTER statement

2011-06-02 Thread langton at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37039

Asher Langton langton at gcc dot gnu.org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED

--- Comment #7 from Asher Langton langton at gcc dot gnu.org 2011-06-02 
21:57:32 UTC ---
Author: langton
Date: Thu Jun  2 21:36:02 2011
New Revision: 174582

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=174582
Log:
* decl.c (variable_decl): Merge current_as before copying to cp_as.

* gfortran.dg/PR37039.f90: New test.


Added:
trunk/gcc/testsuite/gfortran.dg/PR37039.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/decl.c
trunk/gcc/testsuite/ChangeLog


[Bug fortran/37039] Cray pointer with pointee DIMENSION statement after POINTER statement

2010-05-12 Thread dfranke at gcc dot gnu dot org


--- Comment #2 from dfranke at gcc dot gnu dot org  2010-05-12 10:06 ---
Another possible dupe: PR29813.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37039



[Bug fortran/37039] Cray pointer with pointee DIMENSION statement after POINTER statement

2010-05-12 Thread langton at gcc dot gnu dot org


--- Comment #3 from langton at gcc dot gnu dot org  2010-05-12 15:57 ---
I don't think this is a dupe of either of those bugs.  In this case, the
dimension attribute isn't properly applied to 'tab' on line 5.  The problem
appears to be in variable_decl() (decl.c), where I kept an extra gfc_array_spec
(cp_as) that isn't merged with current_as.  I'm trying to recall why cp_as was
necessary, and whether it's still necessary.


-- 

langton at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||langton2 at llnl dot gov


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37039



[Bug fortran/37039] Cray pointer with pointee DIMENSION statement after POINTER statement

2010-05-12 Thread langton at gcc dot gnu dot org


--- Comment #4 from langton at gcc dot gnu dot org  2010-05-12 16:51 ---
Created an attachment (id=20651)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20651action=view)
Possible fix (minimal testing)

Removing cp_as entirely seems to work.  I'll have to test this some more.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37039



[Bug fortran/37039] Cray pointer with pointee DIMENSION statement after POINTER statement

2010-05-12 Thread langton at gcc dot gnu dot org


--- Comment #5 from langton at gcc dot gnu dot org  2010-05-12 19:37 ---
The patch I posted isn't correct.  It causes a regression in
gfortran.dg/cray_pointers_2.f90.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37039



[Bug fortran/37039] Cray pointer with pointee DIMENSION statement after POINTER statement

2010-05-12 Thread langton at gcc dot gnu dot org


--- Comment #6 from langton at gcc dot gnu dot org  2010-05-12 22:14 ---
Created an attachment (id=20653)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20653action=view)
decl.c patch

Trying again: this patch fixes the bug in the testcase and passes regression
testing.


-- 

langton at gcc dot gnu dot org changed:

   What|Removed |Added

  Attachment #20651|0   |1
is obsolete||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37039



[Bug fortran/37039] Cray pointer with pointee DIMENSION statement after POINTER statement

2010-05-09 Thread dfranke at gcc dot gnu dot org


--- Comment #1 from dfranke at gcc dot gnu dot org  2010-05-09 20:39 ---
This is, I think, a technical dupe of PR31560?!


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37039



[Bug fortran/37039] Cray pointer with pointee DIMENSION statement after POINTER statement

2010-02-10 Thread langton at gcc dot gnu dot org


-- 

langton at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |langton at gcc dot gnu dot
   |dot org |org
 Status|NEW |ASSIGNED
   Last reconfirmed|2009-03-29 08:26:51 |2010-02-10 19:38:57
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37039



[Bug fortran/37039] Cray pointer with pointee DIMENSION statement after POINTER statement

2009-03-29 Thread fxcoudert at gcc dot gnu dot org


-- 

fxcoudert at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2009-03-29 08:26:51
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37039