This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: g77 bug report
- To: Jonathan Ravens <ravens at whio dot gns dot cri dot nz>
- Subject: Re: g77 bug report
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Date: Tue, 24 Aug 1999 21:18:57 +0200
- CC: gcc-bugs at gcc dot gnu dot org
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <199908240025.MAA16524@whio.gns.cri.nz>
Jonathan Ravens wrote:
> ! This fortran source will not compile - if the penultimate elseif block is
> ! included then the message appears :
[ code with 126 if then ... else if ... sequences elided ]
> ! /usr/src/egcs//gcc-2.95.1/gcc/f/stw.c:308: failed assertion `b->uses_ > 0'
> ! g77: Internal compiler error: program f771 got fatal signal 6
> !
> ! g77 isn't supposed to have internal limits (according to the documentation)
Ah yes - theory and praxis ;-)
> ! but this appears to be a limit to the number of elseif's. This hasn't been
> ! a problem in previous releases of g77.
Hmmm, that means that (this use of) the uses_ member of the struct
_ffestw_ (see header file stw.h in .../egcs/gcc/f) is new.
It's declared as a (signed) char, so it's limited to 127 values > 0.
Try declaring it as `int', rebuild the compiler and try your example
again ...
Success,
--
Toon Moene (toon@moene.indiv.nluug.nl)
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Phone: +31 346 214290; Fax: +31 346 214286
GNU Fortran: http://world.std.com/~burley/g77.html