https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70725
Bug ID: 70725
Summary: Internal compiler error (ICE) on valid code
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: anton.mitrokhin at phystech dot edu
Target Milestone: ---
Created attachment 38306
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38306&action=edit
Reproducer
Test case produces internal compiler error with skylake-avx512, broadwell and
knl targets on -O3 and -Ofast.
Reproducer:
> g++ -std=c++11 -Ofast -march=skylake-avx512 -c -o out small_if_conf.cpp
> g++ -std=c++11 -Ofast -march=broadwell -c -o out small_if_conf.cpp
> g++ -std=c++11 -Ofast -march=knl -c -o out small_if_conf.cpp
Output:
small.cpp: In function 'void fn1()':
small.cpp:13:6: internal compiler error: in predicate_mem_writes, at
tree-if-conv.c:2033
void fn1() {
^~~
0xd62007 predicate_mem_writes
/export/users/gnutester/stability/svn/trunk/gcc/tree-if-conv.c:2033
0xd62007 combine_blocks
/export/users/gnutester/stability/svn/trunk/gcc/tree-if-conv.c:2150
0xd644d8 tree_if_conversion
/export/users/gnutester/stability/svn/trunk/gcc/tree-if-conv.c:2655
0xd644d8 execute
/export/users/gnutester/stability/svn/trunk/gcc/tree-if-conv.c:2741
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
------------------
> gcc -v:
------------------
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/export/users/amitrokh/gcc_trunk/bin/../libexec/gcc/x86_64-pc-linux-gnu/7.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /export/users/gnutester/stability/svn/trunk/configure
--with-arch=corei7 --with-cpu=corei7 --enable-clocale=gnu --with-system-zlib
--enable-shared --with-demangler-in-ld --enable-cloog-backend=isl
--with-fpmath=sse --with-pkgversion=Revision=235172/svn-rev:235172/
--prefix=/export/users/gnutester/stability/work/trunk/64/install
--enable-languages=c,c++,fortran,java,lto
Thread model: posix
gcc version 7.0.0 20160418 (experimental) (Revision=235172/svn-rev:235172/)