From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3D7D73882052; Thu, 13 Jun 2024 15:20:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3D7D73882052 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1718292021; bh=nKZBX5Ahu0TEN60390BJzKNtVX6/SOyLQflS75gVfx0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Ti27MKyL1FZrpBiEOousb/Yr5glUUi7qNloeh0vMLHwiCR3p/sPJ1uER6IDKS97hi qRWM1cCguiNeYlINYAEFqz/XBPgNYW9Eyi7PyOfXAqSQ6OQBEgeQlO1Q1kQWgv7SFx PaEyfgXFaZCo29p854qOlf91whJ3kJb2KF2dKHe4= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/115476] [13/14/15 Regression] __has_unique_object_representation ICE with array of uninstantiated type of unknown bound Date: Thu, 13 Jun 2024 15:20:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 15.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: everconfirmed keywords bug_status cf_reconfirmed_on short_desc cf_known_to_work cf_known_to_fail target_milestone Message-ID: In-Reply-To: References: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D115476 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Keywords| |ice-on-valid-code Status|UNCONFIRMED |NEW Last reconfirmed| |2024-06-13 Summary|__has_unique_object_represe |[13/14/15 Regression] |ntation ICE with array of |__has_unique_object_represe |uninstantiated type of |ntation ICE with array of |unknown bound |uninstantiated type of | |unknown bound Known to work| |12.3.0 Known to fail| |13.1.0 Target Milestone|--- |13.4 --- Comment #1 from Andrew Pinski --- Confirmed. full backtrace: ``` t.cc:6:59: internal compiler error: Segmentation fault 6 | auto t =3D (__has_unique_object_representations(Foo<0>[])); | ^ 0x137448f crash_signal /home/apinski/src/upstream-gcc-new/gcc/gcc/toplev.cc:319 0xce7df0 contains_struct_check(tree_node const*, tree_node_structure_enum, = char const*, int, char const*) /home/apinski/src/upstream-gcc-new/gcc/gcc/tree.h:4065 0xce7df0 wi::extended_tree<128>::extended_tree(tree_node const*) /home/apinski/src/upstream-gcc-new/gcc/gcc/tree.h:6477 0xce7df0 generic_wide_int >::generic_wide_int(tree_node const* const&) /home/apinski/src/upstream-gcc-new/gcc/gcc/wide-int.h:847 0xce7df0 wi::to_offset(tree_node const*) /home/apinski/src/upstream-gcc-new/gcc/gcc/tree.h:6429 0xce7df0 record_has_unique_obj_representations /home/apinski/src/upstream-gcc-new/gcc/gcc/cp/tree.cc:4832 0xce77bb type_has_unique_obj_representations(tree_node const*) /home/apinski/src/upstream-gcc-new/gcc/gcc/cp/tree.cc:4747 0xcc782e finish_trait_expr(unsigned int, cp_trait_kind, tree_node*, tree_no= de*) /home/apinski/src/upstream-gcc-new/gcc/gcc/cp/semantics.cc:13074 0xc2db09 cp_parser_trait /home/apinski/src/upstream-gcc-new/gcc/gcc/cp/parser.cc:11314 0xc1de71 cp_parser_postfix_expression /home/apinski/src/upstream-gcc-new/gcc/gcc/cp/parser.cc:7954 0xbf4c10 cp_parser_binary_expression /home/apinski/src/upstream-gcc-new/gcc/gcc/cp/parser.cc:10413 0xbf59f4 cp_parser_assignment_expression /home/apinski/src/upstream-gcc-new/gcc/gcc/cp/parser.cc:10757 0xbf5fa4 cp_parser_expression /home/apinski/src/upstream-gcc-new/gcc/gcc/cp/parser.cc:10924 0xc08ebd cp_parser_primary_expression /home/apinski/src/upstream-gcc-new/gcc/gcc/cp/parser.cc:5945 0xc1de71 cp_parser_postfix_expression /home/apinski/src/upstream-gcc-new/gcc/gcc/cp/parser.cc:7954 0xbf4c10 cp_parser_binary_expression /home/apinski/src/upstream-gcc-new/gcc/gcc/cp/parser.cc:10413 0xbf59f4 cp_parser_assignment_expression /home/apinski/src/upstream-gcc-new/gcc/gcc/cp/parser.cc:10757 0xbf7b8e cp_parser_constant_expression /home/apinski/src/upstream-gcc-new/gcc/gcc/cp/parser.cc:11047 0xbf97c6 cp_parser_initializer_clause /home/apinski/src/upstream-gcc-new/gcc/gcc/cp/parser.cc:26369 0xbfcfd4 cp_parser_initializer /home/apinski/src/upstream-gcc-new/gcc/gcc/cp/parser.cc:26308 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. ```=