The CP2K testcase (PR29975) fails with

> gfortran -O0 -c all.f90
all.f90: In function ‘cp2k_init’:
all.f90:360293: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

the source looks like 

      WRITE (UNIT=my_output_unit,FMT="(/,T2,A,T31,A50)")&
        "CP2K| Program compiled at",&
        ADJUSTR(compile_date(1:MIN(50,LEN(compile_date))))


with a back trace that looks like:

(gdb) bt
#0  build_array_type (elt_type=0x0, index_type=0x2ae31026e9c0) at
/data03/vondele/gcc_trunk/gcc/gcc/tree.c:5631
#1  0x00000000004a7585 in gfc_conv_string_tmp (se=0x7fff9af5d630,
type=0x2ae310072300, len=0x2ae31014a870)
    at /data03/vondele/gcc_trunk/gcc/gcc/fortran/trans-expr.c:980
#2  0x00000000004aea5d in gfc_conv_intrinsic_adjust (se=0x7fff9af5d630,
expr=<value optimized out>, fndecl=0x2ae3100e2340)
    at /data03/vondele/gcc_trunk/gcc/gcc/fortran/trans-intrinsic.c:3344
#3  0x00000000004b6d18 in gfc_conv_intrinsic_function (se=0x7fff9af5d630,
expr=0x11fe8d0)
    at /data03/vondele/gcc_trunk/gcc/gcc/fortran/trans-intrinsic.c:4203
#4  0x00000000004a9387 in gfc_conv_function_expr (se=0x7fff9af5d630,
expr=0x2ae31026e9c0)
    at /data03/vondele/gcc_trunk/gcc/gcc/fortran/trans-expr.c:3149
#5  0x00000000004a7b20 in gfc_conv_expr_reference (se=0x0, expr=0x2ae31026e9c0)
    at /data03/vondele/gcc_trunk/gcc/gcc/fortran/trans-expr.c:3744
#6  0x00000000004b87e5 in gfc_trans_transfer (code=0x11fe9a0) at
/data03/vondele/gcc_trunk/gcc/gcc/fortran/trans-io.c:2196
#7  0x0000000000489828 in gfc_trans_code (code=0x11fe9a0) at
/data03/vondele/gcc_trunk/gcc/gcc/fortran/trans.c:1118
#8  0x00000000004bb839 in build_dt (function=0x2ae3100ec9c0, code=0x11feb20)
    at /data03/vondele/gcc_trunk/gcc/gcc/fortran/trans-io.c:1797
#9  0x0000000000489858 in gfc_trans_code (code=0x11feb20) at
/data03/vondele/gcc_trunk/gcc/gcc/fortran/trans.c:1090
#10 0x00000000004c3fa8 in gfc_trans_if_1 (code=0x10b2a30) at
/data03/vondele/gcc_trunk/gcc/gcc/fortran/trans-stmt.c:590
#11 0x00000000004899c0 in gfc_trans_code (code=0x10b29b0) at
/data03/vondele/gcc_trunk/gcc/gcc/fortran/trans.c:1038
#12 0x00000000004a1e0a in gfc_generate_function_code (ns=0x11f1660)
    at /data03/vondele/gcc_trunk/gcc/gcc/fortran/trans-decl.c:3372
#13 0x0000000000488fa2 in gfc_generate_module_code (ns=0xff9f40) at
/data03/vondele/gcc_trunk/gcc/gcc/fortran/trans.c:1206
#14 0x000000000045a644 in gfc_parse_file () at
/data03/vondele/gcc_trunk/gcc/gcc/fortran/parse.c:3580
#15 0x000000000048614d in gfc_be_parse_file (set_yydebug=<value optimized out>)
    at /data03/vondele/gcc_trunk/gcc/gcc/fortran/f95-lang.c:258
#16 0x00000000007019f8 in toplev_main (argc=<value optimized out>, argv=<value
optimized ou

I guess some of the recent changes to the strings is causing this, adding FX


-- 
           Summary: character issue with gfortran
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jv244 at cam dot ac dot uk
OtherBugsDependingO 29975
             nThis:


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

Reply via email to