From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3DF353858410; Tue, 21 Feb 2023 20:04:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3DF353858410 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677009863; bh=fZqz4wl+t3nhKbSK2j9wQnUVfketDwL1sz/fkIBzIDs=; h=From:To:Subject:Date:From; b=rmYnogDO6y9yto62aOpchvEnxGqSSi02boWsyK6CHi+uyKLddVnKYPgntK/QpJw9l m2mE0DDIyKCg/Gs2yx5KTkaUa0d7uClDufqCXKRRuJU+Wip9pDi6Mz7Rt/84Ids1RT xrzbhFJSu2FEN2hV3biiQMVyu63EXZADqiQn6xNg= From: "belka at caraus dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug d/108877] New: Explicit immutable struct import internal compiler error Date: Tue, 21 Feb 2023 20:04:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: d X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: belka at caraus dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ibuclaw at gdcproject dot 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 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=3D108877 Bug ID: 108877 Summary: Explicit immutable struct import internal compiler error Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: belka at caraus dot de Target Milestone: --- We have 2 files. util/Version.d: ``` module util.Version; immutable struct Ver { } ``` and the main file: ``` import util.Version : Ver; ``` Compiling with =E2=80=9Egdc-12 -c util/Version.d version_test.d=E2=80=9C re= sults in the error: > version_test.d:1:8: internal compiler error: in make_import, at d/imports= .cc:48 > 1 | import util.Version : Ver; > | ^ > 0x1bc1e87 internal_error(char const*, ...) > ???:0 > 0x7d27f3 fancy_abort(char const*, int, char const*) > ???:0 > 0x9d4214 ImportVisitor::visit(AggregateDeclaration*) > ???:0 > 0x9d3cfe build_import_decl(Dsymbol*) > ???:0 > 0x9ca0ff DeclVisitor::visit(Import*) > ???:0 > 0x9c70a6 build_decl_tree(Dsymbol*) > ???:0 > 0x9d6fc0 build_module_tree(Module*) > ???:0 > 0x9c9f4b DeclVisitor::visit(Module*) > ???:0 > 0x9c70a6 build_decl_tree(Dsymbol*) > ???:0 > Please submit a full bug report, with preprocessed source (by using -frep= ort-bug). > Please include the complete backtrace with any bug report. > See for instructions. This is reproducable with gdc-12.2.0 and gdc 11.2.0. GDC 12.2.0 info: > gdc-12 -v > Using built-in specs. > COLLECT_GCC=3Dgdc-12 > COLLECT_LTO_WRAPPER=3D/usr/libexec/gcc/x86_64-slackware-linux/12/lto-wrap= per > Target: x86_64-slackware-linux > Configured with: ../gcc-12.2.0/configure --prefix=3D/usr --libdir=3D/usr/= lib64 --mandir=3D/usr/man --infodir=3D/usr/info --enable-shared --disable-b= ootstrap --enable-languages=3Dc,c++,d --enable-threads=3Dposix --enable-che= cking=3Drelease --with-system-zlib --disable-libquadmath-support --with-def= ault-libstdcxx-abi=3Dnew --disable-libstdcxx-pch --disable-libunwind-except= ions --enable-__cxa_atexit --disable-libssp --enable-gnu-unique-object --en= able-plugin --enable-lto --disable-install-libiberty --disable-werror --wit= h-gcc-major-version-only --with-isl --program-suffix=3D-12 --with-arch-dire= ctory=3Damd64 --disable-gtktest --enable-clocale=3Dgnu --disable-multilib -= -target=3Dx86_64-slackware-linux --build=3Dx86_64-slackware-linux --host=3D= x86_64-slackware-linux > Thread model: posix > Supported LTO compression algorithms: zlib zstd > gcc version 12.2.0 (GCC)=