public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* RFC Possible typo find_base_decl alias.c
@ 2001-04-26 10:20 Graham Stott
  2001-04-26 16:49 ` law
  0 siblings, 1 reply; 2+ messages in thread
From: Graham Stott @ 2001-04-26 10:20 UTC (permalink / raw)
  To: gcc

All

It looks to me like find_base_decl in alias.c has an obvious typo
in the following section of code.

    case '3':
      d0 = find_base_decl (TREE_OPERAND (t, 0));
      d1 = find_base_decl (TREE_OPERAND (t, 1));
      d0 = find_base_decl (TREE_OPERAND (t, 0));
      d2 = find_base_decl (TREE_OPERAND (t, 2));

I suspect it should be

    case '3':
      d0 = find_base_decl (TREE_OPERAND (t, 0));
      d1 = find_base_decl (TREE_OPERAND (t, 1));
      d2 = find_base_decl (TREE_OPERAND (t, 2));

Comments.

Graham

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: RFC Possible typo find_base_decl alias.c
  2001-04-26 10:20 RFC Possible typo find_base_decl alias.c Graham Stott
@ 2001-04-26 16:49 ` law
  0 siblings, 0 replies; 2+ messages in thread
From: law @ 2001-04-26 16:49 UTC (permalink / raw)
  To: Graham Stott; +Cc: gcc

  In message < 3AE858E6.467832B5@redhat.com >you write:
  > All
  > 
  > It looks to me like find_base_decl in alias.c has an obvious typo
  > in the following section of code.
  > 
  >     case '3':
  >       d0 = find_base_decl (TREE_OPERAND (t, 0));
  >       d1 = find_base_decl (TREE_OPERAND (t, 1));
  >       d0 = find_base_decl (TREE_OPERAND (t, 0));
  >       d2 = find_base_decl (TREE_OPERAND (t, 2));
  > 
  > I suspect it should be
  > 
  >     case '3':
  >       d0 = find_base_decl (TREE_OPERAND (t, 0));
  >       d1 = find_base_decl (TREE_OPERAND (t, 1));
  >       d2 = find_base_decl (TREE_OPERAND (t, 2));
Agreed. Feel free to go ahead and make the obvious fix to the branch and the
mainline sources.

jeff

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-04-26 16:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-26 10:20 RFC Possible typo find_base_decl alias.c Graham Stott
2001-04-26 16:49 ` law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).