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

            Bug ID: 120746
           Summary: Compilation fails in gcc/value-range.cc due to
                    undeclared 'uint'
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jdx at o2 dot pl
                CC: amacleod at redhat dot com
  Target Milestone: ---
              Host: x86_64-w64-mingw32 @ MSYS2 @ Windows 10
            Target: x86_64-w64-mingw32

Configuration command:
configure --prefix=$CWD/sysroot --disable-nls --enable-languages=c,c++
--enable-checking=release --enable-lto --with-system-zlib

[...]
g++ -std=c++14  -fno-PIE -c   -g -D__USE_MINGW_ACCESS -DIN_GCC   
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall
-Wno-error=narrowing -Wwrite-strings -Wcast-qual -Wno-format
-Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings 
-DHAVE_CONFIG_H -fno-PIE -I. -I. -I../../../gcc/gcc -I../../../gcc/gcc/.
-I../../../gcc/gcc/../include  -I../../../gcc/gcc/../libcpp/include
-I../../../gcc/gcc/../libcody  -I../../../gcc/gcc/../libdecnumber
-I../../../gcc/gcc/../libdecnumber/bid -I../libdecnumber
-I../../../gcc/gcc/../libbacktrace   -o value-range.o -MT value-range.o -MMD
-MP -MF ./.deps/value-range.TPo ../../../gcc/gcc/value-range.cc
../../../gcc/gcc/value-range.cc: In member function 'bool irange::snap(const
wide_int&, const wide_int&, wide_int&, wide_int&)':
../../../gcc/gcc/value-range.cc:2290:3: error: 'uint' was not declared in this
scope; did you mean 'int'?
 2290 |   uint z = wi::ctz (m_bitmask.mask ());
      |   ^~~~
      |   int
../../../gcc/gcc/value-range.cc:2291:7: error: 'z' was not declared in this
scope
 2291 |   if (z == 0)
      |       ^
../../../gcc/gcc/value-range.cc:2294:64: error: 'z' was not declared in this
scope
 2294 |   const wide_int step = (wi::one (TYPE_PRECISION (type ())) << z);
      |                                                                ^
make[3]: *** [Makefile:1212: value-range.o] Error 1
make[3]: Leaving directory '/d/Works/xcomp/gcc-build-stage1/gcc'
make[2]: *** [Makefile:5084: all-stage1-gcc] Error 2
make[2]: Leaving directory '/d/Works/xcomp/gcc-build-stage1'
make[1]: *** [Makefile:22703: stage1-bubble] Error 2
make[1]: Leaving directory '/d/Works/xcomp/gcc-build-stage1'
make: *** [Makefile:1113: all] Error 2

The offending code was introduced in commit 9244ea4b.

Reply via email to