public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "sandipan.mohanty at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/105489] New: Internal Compiler Error for 6 line source code (using C++20 modules) doing nothing Date: Thu, 05 May 2022 07:21:46 +0000 [thread overview] Message-ID: <bug-105489-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105489 Bug ID: 105489 Summary: Internal Compiler Error for 6 line source code (using C++20 modules) doing nothing Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sandipan.mohanty at gmail dot com Target Milestone: --- Created attachment 52928 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52928&action=edit Preprocessed source generated by g++ -freport-bug The following 6 line code defining a struct with only one member type causes an ICE in GCC git version (4 May 2022 / 4a2061610726becfa5158e418c69800f5634b4c1): // Start : Module_ICE_1.cc module; import <vector>; export module SomeModule; struct SomeClass { using iterator = std::vector<int>::iterator; }; // End Steps used to compile: $ rm -rf gcm.cache $ g++ -std=c++20 -fmodules-ts -xc++-system-header vector $ g++ -std=c++20 -fmodules-ts -c Module_ICE_1.cc Expected: (i) the module interface unit compiles without issues if code is correct (ii) an error message from the compiler about what exactly is going wrong, if the user code is incorrect Not expected: compiler crash caused by 6 lines of user code. Tested on: Reborn OS (Arch Linux), OpenSuSE 15.3, Kubuntu 22.04, Rocky Linux (RHEL/CentOS/Fedora) The release version of GCC 11.2.0 does not have this ICE. The configuration options used to build GCC were: ../configure --prefix=blah --enable-languages=c,c++,fortran --disable-multilib --enable-optimized --enable-linux-futex I can do additional experiments if it will help detect/resolve this issue.
next reply other threads:[~2022-05-05 7:21 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-05-05 7:21 sandipan.mohanty at gmail dot com [this message] 2024-03-08 16:08 ` [Bug c++/105489] [modules] " ppalka 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-105489-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).