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

             Bug #: 52161
           Summary: Internal compiler errors with -fcheck=bounds in
                    coarray tests
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: domi...@lps.ens.fr
                CC: bur...@net-b.de


Compiling the tests gfortran.dg/coarray_2.f90 and
gfortran.dg/coarray/sync_1.f90 with -fcheck=bounds gives an internal compiler
error:

#0  fold_convert_loc (loc=<value optimized out>, type=<value optimized out>,
arg=<value optimized out>) at ../../work/gcc/fold-const.c:1856
#1  0x0000000100119ffc in gfc_trans_sync (code=<value optimized out>,
type=<value optimized out>) at ../../work/gcc/fortran/trans-stmt.c:773
#2  0x00000001000b8828 in trans_code (code=<value optimized out>, cond=<value
optimized out>) at ../../work/gcc/fortran/trans.c:1457
#3  0x00000001000e1d14 in gfc_generate_function_code (ns=<value optimized out>)
at ../../work/gcc/fortran/trans-decl.c:5344
#4  0x000000010007501d in gfc_parse_file () at
../../work/gcc/fortran/parse.c:4455
#5  0x00000001000b38d6 in gfc_be_parse_file () at
../../work/gcc/fortran/f95-lang.c:250
#6  0x00000001007b8741 in toplev_main (argc=4, argv=0x7fff5fbfd7a0) at
../../work/gcc/toplev.c:557
#7  0x0000000100001a94 in start ()

or

#0  fold_convert_loc (loc=<value optimized out>, type=<value optimized out>,
arg=<value optimized out>) at ../../work/gcc/fold-const.c:1856
#1  0x0000000100119ffc in gfc_trans_sync (code=<value optimized out>,
type=<value optimized out>) at ../../work/gcc/fortran/trans-stmt.c:773
#2  0x00000001000b8828 in trans_code (code=<value optimized out>, cond=<value
optimized out>) at ../../work/gcc/fortran/trans.c:1457
#3  0x0000000100116554 in gfc_trans_if_1 (code=<value optimized out>) at
../../work/gcc/fortran/trans-stmt.c:963
#4  0x000000010011a8fb in gfc_trans_if (code=<value optimized out>) at
../../work/gcc/fortran/trans-stmt.c:994
#5  0x00000001000b8938 in trans_code (code=<value optimized out>, cond=<value
optimized out>) at ../../work/gcc/fortran/trans.c:1416
#6  0x00000001000e1d14 in gfc_generate_function_code (ns=<value optimized out>)
at ../../work/gcc/fortran/trans-decl.c:5344
#7  0x000000010007501d in gfc_parse_file () at
../../work/gcc/fortran/parse.c:4455
#8  0x00000001000b38d6 in gfc_be_parse_file () at
../../work/gcc/fortran/f95-lang.c:250
#9  0x00000001007b8741 in toplev_main (argc=4, argv=0x7fff5fbfd790) at
../../work/gcc/toplev.c:557
#10 0x0000000100001a94 in start ()

Reply via email to