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

            Bug ID: 88937
           Summary: valgrind error in parse_has_include
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

For a valgrind build of recent gcc trunk and the test file
./g++.dg/cpp1y/feat-cxx14.C, I get 

$ ~/gcc/results/bin/gcc -c ./g++.dg/cpp1y/feat-cxx14.C
In file included from ./g++.dg/cpp1y/feat-cxx14.C:290:
./g++.dg/cpp1y/phoobhar.h:14:6: error: #error
"__has_include_next(\"phoobhar.h\")"
   14 | #    error "__has_include_next(\"phoobhar.h\")"
      |      ^~~~~
==21093== Conditional jump or move depends on uninitialised value(s)
==21093==    at 0x13D7C48: parse_has_include(cpp_reader*, include_type)
(expr.c:2247)
==21093==    by 0x13DAF33: eval_token (expr.c:1159)
==21093==    by 0x13DAF33: _cpp_parse_expr (expr.c:1328)
==21093==    by 0x13D36BC: do_if(cpp_reader*) (directives.c:2008)
$ ~/gcc/results/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/home/dcb/gcc/results/bin/gcc
COLLECT_LTO_WRAPPER=/home/dcb/gcc/results.268000.valgrind/libexec/gcc/x86_64-pc-linux-gnu/9.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../trunk/configure
--prefix=/home/dcb/gcc/results.268000.valgrind --disable-bootstrap
--disable-multilib --disable-werror --enable-checking=valgrind
--enable-languages=c,c++,fortran
Thread model: posix
gcc version 9.0.0 20190117 (experimental) (GCC) 
$

Reply via email to