2 C From: "David C. Doherty" <doherty@networkcs.com>
3 C Message-Id: <199711171846.MAA27947@uh.msc.edu>
4 C Subject: g77: auto arrays + goto = no go
5 C To: egcs-bugs@cygnus.com
6 C Date: Mon, 17 Nov 1997 12:46:27 -0600 (CST)
8 C I sent the following to fortran@gnu.ai.mit.edu, and Dave Love
9 C replied that he was able to reproduce it on rs6000-aix; not on
10 C others. He suggested that I send it to egcs-bugs.
12 C Hi - I've observed the following behavior regarding
13 C automatic arrays and gotos. Seems similar to what I found
14 C in the docs about computed gotos (but not exactly the same).
16 C I suspect from the nature of the error msg that it's in the GBE.
18 C I'm using egcs-971105, under linux-ppc.
20 C I also observed the same in g77-0.5.19 (and gcc 2.7.2?).
22 C I'd appreciate any advice on this. thanks for the great work.
25 subroutine testg77
(n
, a
)
35 if (i
.gt
. 4) goto 100
46 C testg77.f: In subroutine `testg77':
47 C testg77.f:19: label `200' used before containing binding contour
48 C testg77.f:18: label `100' used before containing binding contour
50 C If I comment out the b(n) line or replace it with, e.g., b(10),