This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: g77 bug report


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]