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

            Bug ID: 84978
           Summary: ice in cxx_eval_constant_expression at
                    gcc/cp/constexpr.c:4109
           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: ---

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

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

$ ../results/bin/gcc -c bug422.cc 
quadprog/quadprog.cpp: In function ‘__Pyx_memviewslice
__pyx_memoryview_copy_new
_contig(const __Pyx_memviewslice*, const char*, int, size_t, int, int)’:
quadprog/quadprog.cpp:20986:1: internal compiler error: Segmentation fault
0x100d46f crash_signal
        ../../trunk/gcc/toplev.c:325
0x63e895 cxx_eval_constant_expression
        ../../trunk/gcc/cp/constexpr.c:4109
0x64563f cxx_eval_component_reference
        ../../trunk/gcc/cp/constexpr.c:2494
0x63e966 cxx_eval_constant_expression
        ../../trunk/gcc/cp/constexpr.c:4494
$ ../results/bin/gcc -v
Using built-in specs.
COLLECT_GCC=../results/bin/gcc
COLLECT_LTO_WRAPPER=/home/dcb/gcc/results.258623/libexec/gcc/x86_64-pc-linux-gnu/8.0.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../trunk/configure --prefix=/home/dcb/gcc/results.258623
--disable-bootstrap --disable-multilib --disable-werror
--enable-checking=df,extra,fold,rtl,yes --enable-languages=c,c++,fortran
Thread model: posix
gcc version 8.0.1 20180317 (experimental) (GCC) 
$ 

The problem seems to exist between revisions 258584 and 258623.

I'll have my usual go at reducing the original test case.

Reply via email to