From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6A0543854809; Fri, 18 Dec 2020 21:27:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6A0543854809 From: "cebtenzzre at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/98383] New: internal compiler error: in make_decl_rtl, at varasm.c:1342 Date: Fri, 18 Dec 2020 21:27:36 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 10.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cebtenzzre at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Dec 2020 21:27:36 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98383 Bug ID: 98383 Summary: internal compiler error: in make_decl_rtl, at varasm.c:1342 Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cebtenzzre at gmail dot com Target Milestone: --- Created attachment 49803 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D49803&action=3Dedit Preprocessed source that triggers the error g++ crashes with an internal compiler error while compiling a version of on= eDNN used by ideep. Specifically, ref_shuffle.cpp at commit 7aed236906b1f7a05c0917e5257a1af05e9ff683 (https://github.com/oneapi-src/oneDNN/blob/7aed236906b1f7a05c0917e5257a1af0= 5e9ff683/src/cpu/ref_shuffle.cpp). I have not attempted to compile the latest version of this file. Preprocess= ed source is gzipped and attached as ref_shuffle.ii.gz. -fopenmp is necessary to reproduce the crash. It occurs with -O1 (but not -= O0, -O2, or -O3), with -fsanitize=3Daddress -O1 (same line in the error message= ), and with -fsanitize=3Daddress and either -O2 or -O3 (different line in the error message). Output: $ g++ -c ref_shuffle.ii -fopenmp -O1 during RTL pass: expand ../third_party/ideep/mkl-dnn/src/cpu/ref_shuffle.cpp: In function =E2=80=98_ZNK4dnnl4impl3cpu13ref_shuffle_tILi4EE8execute_IL17dnnl_format_ta= g_t112EEEvRKNS0_10exec_ctx_tE._omp_fn.0=E2=80=99: ../third_party/ideep/mkl-dnn/src/cpu/ref_shuffle.cpp:69:9: internal compiler error: in make_decl_rtl, at varasm.c:1342 69 | #pragma omp parallel for collapse(3) schedule(static) | ^~~ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. $ g++ -c ref_shuffle.ii -fopenmp -fsanitize=3Daddress -O2 during RTL pass: expand ../third_party/ideep/mkl-dnn/src/cpu/ref_shuffle.cpp: In function =E2=80=98_ZNK4dnnl4impl3cpu13ref_shuffle_tILi4EE8execute_IL17dnnl_format_ta= g_t112EEEvRKNS0_10exec_ctx_tE._omp_fn.0=E2=80=99: ../third_party/ideep/mkl-dnn/src/cpu/ref_shuffle.cpp:76:56: internal compil= er error: in make_decl_rtl, at varasm.c:1342 76 | for (int cc =3D 0; cc < nstl::min(blksize, C - cb); ++c= c) { | ~~^~~~ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. $ g++ -v Using built-in specs. COLLECT_GCC=3Dg++ COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /build/gcc/src/gcc/configure --prefix=3D/usr --libdir=3D/u= sr/lib --libexecdir=3D/usr/lib --mandir=3D/usr/share/man --infodir=3D/usr/share/in= fo --with-bugurl=3Dhttps://bugs.archlinux.org/ --enable-languages=3Dc,c++,ada,fortran,go,lto,objc,obj-c++,d --with-isl --with-linker-hash-style=3Dgnu --with-system-zlib --enable-__cxa_atexit --enable-cet=3Dauto --enable-checking=3Drelease --enable-clocale=3Dgnu --enable-default-pie --enable-default-ssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-install-libiberty --enable-linker-build= -id --enable-lto --enable-multilib --enable-plugin --enable-shared --enable-threads=3Dposix --disable-libssp --disable-libstdcxx-pch --disable-libunwind-exceptions --disable-werror gdc_include_dir=3D/usr/include/dlang/gdc Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 10.2.0 (GCC)=