public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "belka at caraus dot de" <gcc-bugzilla@gcc.gnu.org> 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 [thread overview] Message-ID: <bug-108877-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108877 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 „gdc-12 -c util/Version.d version_test.d“ results 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 -freport-bug). > Please include the complete backtrace with any bug report. > See <https://gcc.gnu.org/bugs/> 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=gdc-12 > COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-slackware-linux/12/lto-wrapper > Target: x86_64-slackware-linux > Configured with: ../gcc-12.2.0/configure --prefix=/usr --libdir=/usr/lib64 --mandir=/usr/man --infodir=/usr/info --enable-shared --disable-bootstrap --enable-languages=c,c++,d --enable-threads=posix --enable-checking=release --with-system-zlib --disable-libquadmath-support --with-default-libstdcxx-abi=new --disable-libstdcxx-pch --disable-libunwind-exceptions --enable-__cxa_atexit --disable-libssp --enable-gnu-unique-object --enable-plugin --enable-lto --disable-install-libiberty --disable-werror --with-gcc-major-version-only --with-isl --program-suffix=-12 --with-arch-directory=amd64 --disable-gtktest --enable-clocale=gnu --disable-multilib --target=x86_64-slackware-linux --build=x86_64-slackware-linux --host=x86_64-slackware-linux > Thread model: posix > Supported LTO compression algorithms: zlib zstd > gcc version 12.2.0 (GCC)
next reply other threads:[~2023-02-21 20:04 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-02-21 20:04 belka at caraus dot de [this message] 2023-02-26 0:17 ` [Bug d/108877] " ibuclaw at gcc dot gnu.org 2023-02-27 12:39 ` belka at caraus dot de 2023-03-03 0:26 ` cvs-commit at gcc dot gnu.org 2023-03-03 2:28 ` cvs-commit at gcc dot gnu.org 2023-03-03 2:33 ` cvs-commit at gcc dot gnu.org 2023-03-03 2:43 ` cvs-commit at gcc dot gnu.org 2023-03-03 2:46 ` ibuclaw 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-108877-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: linkBe 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).