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

            Bug ID: 110444
           Summary: ice in real_can_shorten_arithmetic, at real.cc:1398
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 55408
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55408&action=edit
gzipped C++ source code

The attached C++ code does this with recent gcc trunk:

$ ~/gcc/results/bin/gcc -c -w -O2 -std=c++11 bug934.cc 
during GIMPLE pass: fre
In file included from
/home/dcb38/rpmbuild/BUILD/vigra-1.11.1/vigranumpy/src/cor
e/non_local_mean.cxx:41:
/home/dcb38/rpmbuild/BUILD/vigra-1.11.1/include/vigra/non_local_mean.hxx: In
fun
ction ‘void vigra::gaussianMeanAndVariance(const MultiArrayView<DIM,
PIXEL_TYPE_
IN>&, double, MultiArrayView<DIM, PIXEL_TYPE_OUT>&, MultiArrayView<DIM,
PIXEL_TY
PE_OUT>&, MultiArrayView<DIM, PIXEL_TYPE_OUT>&) [with int DIM = 2;
PIXEL_TYPE_IN
 = TinyVector<float, 3>; SMOOTH_POLICY = TinyVector<float, 3>; PIXEL_TYPE_OUT = 
TinyVector<float, 3>]’:
/home/dcb38/rpmbuild/BUILD/vigra-1.11.1/include/vigra/non_local_mean.hxx:799:13:
 internal compiler error: in real_can_shorten_arithmetic, at real.cc:1398
  799 | inline void gaussianMeanAndVariance(
      |             ^~~~~~~~~~~~~~~~~~~~~~~
0x107bebe real_can_shorten_arithmetic(machine_mode, machine_mode)
        ../../trunk.year/gcc/real.cc:1398

Reply via email to