[Bug fortran/33149] internal compiler error: in gfc_conv_constant

burnus at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Aug 22 17:36:00 GMT 2007



------- Comment #2 from burnus at gcc dot gnu dot org  2007-08-22 17:35 -------
I think the problem has been fixed meanwhile; I can reproduce it with 4.1.3
20070521 and 4.2.1 20070705, but not with 4.3.0 20070822.

Using gfortran 4.3 gives the following error message:

    integer  :: i,j,k,ndim=size(cl)
                               1
Error: deferred array 'cl' at (1) is not permitted in an initialization
expression

It probably works with gfortran 4.2 if you fix the code. The official GCC
policy is to only fix regressions in released versions - and as this seems to
be an ICE which only occurs for invalid code, it is unlikely that we will break
that rule.

gfortran 4.3 nightly binaries are available from
http://gcc.gnu.org/wiki/GFortranBinaries
and older gcc 4.3 openSUSE builds are available from
http://software.opensuse.org/search?q=gcc43&p=1&baseproject=openSUSE%3A10.2
(I selected 10.2, if you have to modify the search if you have another version
of SUSE; see also: http://gcc.gnu.org/wiki/GFortranDistros )

Please confirm that either with the 4.3 binaries or after fixing your program,
error is gone.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33149



More information about the Gcc-bugs mailing list