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]
Other format: [Raw text]

[Bug fortran/40875] New: ICE with illegal type conversion


When I compile the module listed below with gfortran 4.5 I get the message:

f951: internal compiler error: in gfc_set_constant_character_len, at
fortran/decl.c:1112
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

gfortran 4.2, 4.3, and 4.4 produce similar messages. g95 produces the message:

In file crash.f90:6

      CHARACTER, PARAMETER :: the_beta = (/one_parameter('c')/)
                                           1
Error: Can't convert TYPE(one_parameter) to CHARACTER(1) at (1)

    MODULE cdf_aux_mod
      PUBLIC
      TYPE :: one_parameter
        CHARACTER :: name
      END TYPE one_parameter
      CHARACTER, PARAMETER :: the_beta = (/one_parameter('c')/)
    END MODULE cdf_aux_mod


-- 
           Summary: ICE with illegal type conversion
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: michael dot a dot richmond at nasa dot gov


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


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