From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 984D73858D32; Mon, 15 Jan 2024 06:28:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 984D73858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705300085; bh=RrDiIzMYtGmnVSj76f0Q1RzmrDeXG8nFc/AsKK5ze4Q=; h=From:To:Subject:Date:From; b=lLwf/1eStFGqWBKg+qJSLRKfXIs2PIO8KAZT7WHO1WeUKkS05XB0E8NYmXp0c2S+3 7kMR2reS7QEuakw4X9TgkMPr/vr5aHvUZIa4iJJSJOGjhHlcQ5AuThl5kqoEMiaz3G 8dVgi3dzxCVkGpf+zdP538eT0eLrkE7A7iReIp94= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/113394] New: ICE: 'verify_type' failed: type variant with 'TYPE_ALIAS_SET_KNOWN_P' with -fstrub=internal -g Date: Mon, 15 Jan 2024 06:28:04 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz 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 keywords bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113394 Bug ID: 113394 Summary: ICE: 'verify_type' failed: type variant with 'TYPE_ALIAS_SET_KNOWN_P' with -fstrub=3Dinternal -g Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu This fails on the gcc.c-torture/compile/20020210-1.c testcase. Compiler output: $ x86_64-pc-linux-gnu-gcc -fstrub=3Dinternal -g /repo/gcc-trunk/gcc/testsuite/gcc.c-torture/compile/20020210-1.c /repo/gcc-trunk/gcc/testsuite/gcc.c-torture/compile/20020210-1.c:2:15: warn= ing: anonymous struct declared inside parameter list will not be visible outside= of this definition or declaration 2 | void f(int a, struct {int b[a];} c) {} | ^~~~~~ /repo/gcc-trunk/gcc/testsuite/gcc.c-torture/compile/20020210-1.c: In functi= on 'f.strub.0': /repo/gcc-trunk/gcc/testsuite/gcc.c-torture/compile/20020210-1.c:2:38: erro= r: type variant with 'TYPE_ALIAS_SET_KNOWN_P' 2 | void f(int a, struct {int b[a];} c) {} ... during RTL pass: final /repo/gcc-trunk/gcc/testsuite/gcc.c-torture/compile/20020210-1.c:2:38: inte= rnal compiler error: 'verify_type' failed 0x1837cee verify_type(tree_node const*) /repo/gcc-trunk/gcc/tree.cc:14386 0x1051814 gen_type_die_with_usage /repo/gcc-trunk/gcc/dwarf2out.cc:26258 0x104e566 gen_type_die /repo/gcc-trunk/gcc/dwarf2out.cc:26489 0x104e566 gen_decl_die /repo/gcc-trunk/gcc/dwarf2out.cc:27226 0x104a93d gen_subprogram_die /repo/gcc-trunk/gcc/dwarf2out.cc:24094 0x104eab9 gen_decl_die /repo/gcc-trunk/gcc/dwarf2out.cc:27106 0x104f6eb dwarf2out_decl /repo/gcc-trunk/gcc/dwarf2out.cc:27687 0x104fb8e dwarf2out_function_decl /repo/gcc-trunk/gcc/dwarf2out.cc:27702 0x10dfea4 rest_of_handle_final /repo/gcc-trunk/gcc/final.cc:4273 0x10dfea4 execute /repo/gcc-trunk/gcc/final.cc:4317 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. $ x86_64-pc-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=3D/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-g= cc COLLECT_LTO_WRAPPER=3D/repo/gcc-trunk/binary-trunk-r14-7237-20240115123527-= g65678b2bae5-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc= /x86_64-pc-linux-gnu/14.0.1/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=3Dc,c++ --enable-valgrind-annotations --disable-nls --enable-checking=3Dyes,rtl,df,= extra --disable-bootstrap --with-cloog --with-ppl --with-isl --build=3Dx86_64-pc-linux-gnu --host=3Dx86_64-pc-linux-gnu --target=3Dx86_64-pc-linux-gnu --with-ld=3D/usr/bin/x86_64-pc-linux-gnu-ld --with-as=3D/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch --prefix=3D/repo/gcc-trunk//binary-trunk-r14-7237-20240115123527-g65678b2ba= e5-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.1 20240115 (experimental) (GCC)=