This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/51517] [4.5/4.6/4.7 Regression] Wrong debug information for pointers with negative strides.
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 14 Dec 2011 15:14:22 +0000
- Subject: [Bug debug/51517] [4.5/4.6/4.7 Regression] Wrong debug information for pointers with negative strides.
- Auto-submitted: auto-generated
- References: <bug-51517-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51517
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|unassigned at gcc dot |jakub at gcc dot gnu.org
|gnu.org |
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-12-14 15:14:22 UTC ---
Created attachment 26081
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26081
gcc47-pr51517.patch
Untested fix.
OT, can anyone please explain the following in trans-decl.c
(gfc_trans_deferred_vars):
else if ((!sym->attr.dummy || sym->ts.deferred)
&& (sym->ts.type == BT_CLASS
&& CLASS_DATA (sym)->attr.pointer))
break;
? The break there will IMHO just cause the rest of the *->tlink chain deferred
vars not to be processed at all, is that the right thing to do? continue; or ;
would make much more sense to me...