------- Comment #2 from eedelman at gcc dot gnu dot org  2005-12-30 22:44 
-------
The testcase compiles without error messages in 4.2.0 20051230 (I haven't tried
with 4.1 or 4.0 yet).  However, if I try to use IntToChar2 from another program
unit, I get another error, so there's still a bug somewhere.  E.g. for the
program

----------------
program test

    use cutils

    implicit none
    character(25) :: str

    str = IntToChar2(3)

end program test
--------------------

I get

erik:/home/gcc/head/test$ gfortran 23675.f90 
23675.f90: In function 'MAIN__':
23675.f90:22: internal compiler error: in gfc_get_symbol_decl, at
fortran/trans-decl.c:819

Possible workaround at the moment:  Declare maxStringLength to be a PARAMETER


-- 

eedelman at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eedelman at gcc dot gnu dot
                   |                            |org
         AssignedTo|unassigned at gcc dot gnu   |eedelman at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


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


Reply via email to