This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: internal compiler error
<Malte.Mauelshagen@dlr.de> writes:
> i converted some files of my project from fixed-format (.f77) to free-format (.f90) and divided the code into some subroutines.
> Unfortunately now, there occurs a problem and i dont know how to solve:
>
> gfortran -x f95-cpp-input -ffast-math -m64 -w -O2 -frecord-marker=4 -DtwoD -UnoTecplotLib -Dturbvel -Dcaa -Dpurser -Dpartini -Dsweeping -Dltble -Dfiltering -c ../MainSubs/PianoInterface.f90 2>&1 |tee PianoInterface.err
> ../MainSubs/PianoInterface.f90: In function âinitpianoâ:
> ../MainSubs/PianoInterface.f90:494: internal compiler error: in gfc_conv_function_val, at fortran/trans-expr.c:1177
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://bugs.opensuse.org> for instructions.
An "internal compiler error" always indicates a compiler bug. Since you
are using gcc 4.1.2 and the current version is 4.5.0, one obvious
approach to avoiding the problem is to try a newer version of the
compiler. If that is impossible for some reason, then other things to
try would be to compile that bit of code without optimization, or to
just try to adjust the code until the error no longer occurs.
I would not be at all surprised if this error occurs when the compiler
is trying to handle code which is itself erroneous, so you should
convince yourself that your code is correct.
Ian