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

            Bug ID: 128549
           Summary: valgrind error with -fopenmp
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 66111
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=66111&action=edit
f90 source code

>From the flang testsuite in llvm on github, the attached F90
code does this following with a recent valgrinded gfortran:

$ ~/gcc/results.20261104.valgrind/bin/gfortran -c -w -fopenmp
/home/dcb42/llvm/trunk/flang/test/Lower/OpenMP/declare-reduction-operator-use-only-nonreduction.f90
==413480== Invalid read of size 1
==413480==    at 0x5280110: ???
==413480==    by 0x5280114: ???
==413480==  Address 0x1 is not stack'd, malloc'd or (recently) free'd
==413480== 
==413480== 
==413480== Exit program on first error (--exit-on-first-error=yes)
$ 

Compiler is

$ ~/gcc/results.20261104.valgrind/bin/gfortran -v
Using built-in specs.
COLLECT_GCC=/home/dcb42/gcc/results.20261104.valgrind/bin/gfortran
COLLECT_LTO_WRAPPER=/home/dcb42/gcc/results.20261104.valgrind/libexec/gcc/x86_64-pc-linux-gnu/17.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../trunk/configure
--prefix=/home/dcb42/gcc/results.20261104.valgrind --disable-bootstrap
--disable-doc --disable-fixincludes --disable-multilib
--with-pkgversion=04f042f50ed44c73 --enable-checking=valgrind
--enable-languages=c,c++,fortran
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 17.0.0 20261104 (experimental) (04f042f50ed44c73) 
$

Reply via email to