public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/107242] New: ICE: tree check: expected complex_cst, have plus_expr in output_constant, at varasm.cc:5284 Date: Thu, 13 Oct 2022 04:12:15 +0000 [thread overview] Message-ID: <bug-107242-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107242 Bug ID: 107242 Summary: ICE: tree check: expected complex_cst, have plus_expr in output_constant, at varasm.cc:5284 Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- Target: powerpc-e300c3-linux-gnu g++ 13.0.0 20221009 snapshot (g:e95e91eccd022a4a3a86da2749809fbad9afd20e) ICEs when compiling the following testcase, reduced from libstdc++-v3/testsuite/26_numerics/complex/comparison_operators/more_constexpr.cc, for a 32-bit BE target w/ -std=c++20 -Og -frounding-math -fno-ipa-pure-const: #include <complex> std::complex<float> test_comparison () { constexpr std::complex<float> a{1.1, 2.2}; constexpr std::complex<float> b{3.3, 4.4}; return a + b; } % powerpc-e300c3-linux-gnu-g++-13 -std=c++20 -Og -frounding-math -fno-ipa-pure-const -c micz0onj.cc micz0onj.cc:10:1: internal compiler error: tree check: expected complex_cst, have plus_expr in output_constant, at varasm.cc:5284 10 | } | ^ 0x803d1f tree_check_failed(tree_node const*, char const*, int, char const*, ...) /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/tree.cc:8827 0x819d94 tree_check(tree_node*, char const*, int, char const*, tree_code) /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/tree.h:3526 0x819d94 output_constant /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/varasm.cc:5284 0x14b1c1a output_constructor_regular_field /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/varasm.cc:5562 0x14b1c1a output_constructor /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/varasm.cc:5829 0x14b3625 assemble_constant_contents /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/varasm.cc:3638 0x14b3d34 output_object_block /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/varasm.cc:8070 0x14b3d34 output_object_blocks() /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/varasm.cc:8148 powerpc-e300c3-linux-gnu-g++-13 -v Using built-in specs. COLLECT_GCC=powerpc-e300c3-linux-gnu-g++-13 COLLECT_LTO_WRAPPER=/usr/libexec/gcc/powerpc-e300c3-linux-gnu/13/lto-wrapper Target: powerpc-e300c3-linux-gnu Configured with: /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-13.0.0_p20221009/work/gcc-13-20221009/configure --host=x86_64-pc-linux-gnu --target=powerpc-e300c3-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/powerpc-e300c3-linux-gnu/gcc-bin/13 --includedir=/usr/lib/gcc/powerpc-e300c3-linux-gnu/13/include --datadir=/usr/share/gcc-data/powerpc-e300c3-linux-gnu/13 --mandir=/usr/share/gcc-data/powerpc-e300c3-linux-gnu/13/man --infodir=/usr/share/gcc-data/powerpc-e300c3-linux-gnu/13/info --with-gxx-include-dir=/usr/lib/gcc/powerpc-e300c3-linux-gnu/13/include/g++-v13 --with-python-dir=/share/gcc-data/powerpc-e300c3-linux-gnu/13/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --disable-nls --disable-libunwind-exceptions --enable-checking=yes --with-gcc-major-version-only --disable-esp --enable-libstdcxx-time --disable-libstdcxx-pch --enable-poison-system-directories --with-sysroot=/usr/powerpc-e300c3-linux-gnu --disable-bootstrap --enable-__cxa_atexit --enable-clocale=gnu --disable-multilib --disable-fixed-point --enable-targets=all --enable-libgomp --disable-libssp --disable-libada --disable-cet --disable-systemtap --enable-valgrind-annotations --disable-vtable-verify --disable-libvtv --without-zstd --enable-lto --with-isl --disable-isl-version-check --disable-libsanitizer --enable-default-ssp Thread model: posix Supported LTO compression algorithms: zlib gcc version 13.0.0 20221009 (experimental) (GCC)
next reply other threads:[~2022-10-13 4:12 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-10-13 4:12 asolokha at gmx dot com [this message] 2022-10-13 5:01 ` [Bug c++/107242] " pinskia at gcc dot gnu.org 2022-10-13 5:06 ` pinskia at gcc dot gnu.org 2022-10-13 5:17 ` [Bug c++/107242] ICE: tree check: expected complex_cst, have plus_expr in output_constant, at varasm.cc:5284 with frounding-math asolokha at gmx dot com 2022-10-13 5:25 ` pinskia at gcc dot gnu.org 2022-10-14 7:24 ` rguenth at gcc dot gnu.org 2022-10-14 19:41 ` pinskia at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-107242-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).