From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1EEA33858D39; Mon, 13 Mar 2023 19:57:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1EEA33858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678737471; bh=C6Y523GboktgM1wS1iAgRGMctxKRbVlYW/y0t7S+pks=; h=From:To:Subject:Date:From; b=OHQDtp854QmbbHUO31JxNCcwWwDYZI+SwZFqgJhEqSv4tsxtVBwGrk7vNKU0Gbw/u 2wu8L3lyXPrgYX+sZiTNpZKrMQaCjNvSf/Nt5n3jpjJUhOx6nZ5bdQ444XJyDVhVPU 5q1abexUllt+u3ngrCJCaF+GDTO+I8BJ8jTieiEo= From: "noe.lopez at epitech dot eu" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/109113] New: internal compiler error: in output_constructor_regular_field, at varasm.cc:5521 Date: Mon, 13 Mar 2023 19:57:50 +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: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: noe.lopez at epitech dot eu 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109113 Bug ID: 109113 Summary: internal compiler error: in output_constructor_regular_field, at varasm.cc:5521 Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: noe.lopez at epitech dot eu Target Milestone: --- Created attachment 54650 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54650&action=3Dedit The minimal code example Hello :), I've recently come across an internal compiler error when trying = to compile my code. The error seems to be triggered by assigning the result of a malloc of the = size of a structure containing static arrays of another structure containing sta= tic arrays ??? It's a little complicated but I've done my best to produce a minimal exampl= e of the bug that can be compiled with the following command: `gcc minimal.c` Here's my gcc -v output: Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/usr/lib64/gcc/x86_64-unknown-linux-gnu/12.2.0/lto-wr= apper Target: x86_64-unknown-linux-gnu Configured with: /builddir/gcc-12.2.0/configure --build=3Dx86_64-unknown-linux-gnu --enable-gnu-unique-object --enable-vtable-verify --prefix=3D/usr --mandir=3D/usr/share/man --infodir=3D/usr/share/info --libexecdir=3D/usr/lib64 --libdir=3D/usr/lib64 --enable-threads=3Dposix --enable-__cxa_atexit --disable-multilib --with-system-zlib --enable-shared --enable-lto --enable-plugins --enable-linker-build-id --disable-werror --disable-nls --enable-default-pie --enable-default-ssp --enable-checking=3Drelease --disable-libstdcxx-pch --with-isl --with-linker-hash-style=3Dgnu --disable-sjlj-exceptions --disable-target-libiberty --disable-libssp --enable-languages=3Dc,c++,objc,obj-c++,fortran,lto,go,ada Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.2.0 (GCC) Here's the compiler output: minimal.c:50:1: internal compiler error: in output_constructor_regular_fiel= d, at varasm.cc:5521 50 | int main(void) {} | ^~~ 0x7f514864820b __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 0x7f51486482bb __libc_start_main_impl ../csu/libc-start.c:381 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.=