https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93162

            Bug ID: 93162
           Summary: [10 Regression] gcc/fortran/trans-openmp.c:2469:50:
                    runtime error: load of value 145992800, which is not a
                    valid value for type 'ar_type' since r279628
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
            Blocks: 63426
  Target Milestone: ---

Starting from the revision, I see the following run-time error:

$ ./xgcc -B.
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/build/gcc/testsuite/gfortran.dg/goacc/derived-types-3.f90
-fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers
-fdiagnostics-color=never -fdiagnostics-urls=never -O -fopenacc -S -o
derived-types-3.s
../../gcc/fortran/trans-openmp.c:2469:50: runtime error: load of value
176162128, which is not a valid value for type 'ar_type'
    #0 0xeac9fb in gfc_trans_omp_clauses ../../gcc/fortran/trans-openmp.c:2469
    #1 0xeb93d6 in gfc_trans_oacc_executable_directive
../../gcc/fortran/trans-openmp.c:3662
    #2 0xec9df5 in gfc_trans_oacc_directive(gfc_code*)
../../gcc/fortran/trans-openmp.c:5696
    #3 0xcd1af6 in trans_code ../../gcc/fortran/trans.c:2158
    #4 0xcd1de9 in gfc_trans_code(gfc_code*) ../../gcc/fortran/trans.c:2197
    #5 0xd9ddfa in gfc_generate_function_code(gfc_namespace*)
../../gcc/fortran/trans-decl.c:6823
    #6 0xcd1e74 in gfc_generate_code(gfc_namespace*)
../../gcc/fortran/trans.c:2214
    #7 0xb22c54 in translate_all_program_units ../../gcc/fortran/parse.c:6302
    #8 0xb23ac0 in gfc_parse_file() ../../gcc/fortran/parse.c:6541
    #9 0xc923b0 in gfc_be_parse_file ../../gcc/fortran/f95-lang.c:210
    #10 0x244f0fb in compile_file ../../gcc/toplev.c:458
    #11 0x2457af0 in do_compile ../../gcc/toplev.c:2269
    #12 0x2458124 in toplev::main(int, char**) ../../gcc/toplev.c:2408
    #13 0x4a32e40 in main ../../gcc/main.c:39
    #14 0x7fadf0750e0a in __libc_start_main ../csu/libc-start.c:308
    #15 0x8ad1f9 in _start
(/home/marxin/Programming/gcc2/objdir/gcc/f951+0x8ad1f9)


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63426
[Bug 63426] [meta-bug] Issues found with -fsanitize=undefined

Reply via email to