public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "zsojka at seznam dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/105871] New: ICE: in wide_int_to_tree_1, at tree.cc:1777 with __builtin_shufflevector() in C++ code
Date: Tue, 07 Jun 2022 10:16:29 +0000	[thread overview]
Message-ID: <bug-105871-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 105871
           Summary: ICE: in wide_int_to_tree_1, at tree.cc:1777 with
                    __builtin_shufflevector() in C++ code
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu

Created attachment 53098
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53098&action=edit
reduced testcase

Compiler output:
$ x86_64-pc-linux-gnu-gcc testcase.C 
testcase.C: In function 'void foo()':
testcase.C:7:47: internal compiler error: in wide_int_to_tree_1, at
tree.cc:1777
    7 |   __builtin_shufflevector ((U){}, (V){}, 0) / 1;
      |                                               ^
0x8f4c57 wide_int_to_tree_1
        /repo/gcc-trunk/gcc/tree.cc:1777
0x198473f wide_int_to_tree(tree_node*, poly_int<1u,
generic_wide_int<wide_int_ref_storage<false, true> > > const&)
        /repo/gcc-trunk/gcc/tree.cc:1889
0x198473f build_int_cst(tree_node*, poly_int<1u, long>)
        /repo/gcc-trunk/gcc/tree.cc:1529
0xe5be5d cxx_eval_bit_field_ref
        /repo/gcc-trunk/gcc/cp/constexpr.cc:4211
0xe4d50e cxx_eval_constant_expression
        /repo/gcc-trunk/gcc/cp/constexpr.cc:7177
0xe51576 cxx_eval_outermost_constant_expr
        /repo/gcc-trunk/gcc/cp/constexpr.cc:7863
0xe5607d maybe_constant_value(tree_node*, tree_node*, bool)
        /repo/gcc-trunk/gcc/cp/constexpr.cc:8141
0xe846b4 cp_fully_fold(tree_node*)
        /repo/gcc-trunk/gcc/cp/cp-gimplify.cc:2353
0xe846b4 cp_fully_fold(tree_node*)
        /repo/gcc-trunk/gcc/cp/cp-gimplify.cc:2345
0x108364a cp_build_binary_op(op_location_t const&, tree_code, tree_node*,
tree_node*, int)
        /repo/gcc-trunk/gcc/cp/typeck.cc:6273
0xe1f988 build_new_op(op_location_t const&, tree_code, int, tree_node*,
tree_node*, tree_node*, tree_node*, tree_node**, int)
        /repo/gcc-trunk/gcc/cp/call.cc:6935
0x1075abe build_x_binary_op(op_location_t const&, tree_code, tree_node*,
tree_code, tree_node*, tree_code, tree_node*, tree_node**, int)
        /repo/gcc-trunk/gcc/cp/typeck.cc:4565
0xf7fa5b cp_parser_binary_expression
        /repo/gcc-trunk/gcc/cp/parser.cc:10209
0xf801dc cp_parser_assignment_expression
        /repo/gcc-trunk/gcc/cp/parser.cc:10347
0xf81cb2 cp_parser_expression
        /repo/gcc-trunk/gcc/cp/parser.cc:10517
0xf852a8 cp_parser_expression_statement
        /repo/gcc-trunk/gcc/cp/parser.cc:12734
0xf922ff cp_parser_statement
        /repo/gcc-trunk/gcc/cp/parser.cc:12526
0xf9347d cp_parser_statement_seq_opt
        /repo/gcc-trunk/gcc/cp/parser.cc:12883
0xf93558 cp_parser_compound_statement
        /repo/gcc-trunk/gcc/cp/parser.cc:12835
0xfb3a95 cp_parser_function_body
        /repo/gcc-trunk/gcc/cp/parser.cc:25184
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

$ x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r13-1003-20220607102453-gcef3f69c2f4-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/13.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--disable-bootstrap --with-cloog --with-ppl --with-isl
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-r13-1003-20220607102453-gcef3f69c2f4-checking-yes-rtl-df-extra-nobootstrap-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.0.0 20220607 (experimental) (GCC)

             reply	other threads:[~2022-06-07 10:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-07 10:16 zsojka at seznam dot cz [this message]
2022-06-07 10:21 ` [Bug c++/105871] " jakub at gcc dot gnu.org
2022-06-07 10:51 ` jakub at gcc dot gnu.org
2022-06-07 12:20 ` jakub at gcc dot gnu.org
2022-06-09 15:58 ` cvs-commit at gcc dot gnu.org
2022-06-19 10:08 ` cvs-commit at gcc dot gnu.org
2022-06-20  9:58 ` jakub 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-105871-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: link
Be 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).