public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "johelegp at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/102598] New: [modules] ICE in pp_string, at pretty-print.c Date: Mon, 04 Oct 2021 19:17:34 +0000 [thread overview] Message-ID: <bug-102598-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102598 Bug ID: 102598 Summary: [modules] ICE in pp_string, at pretty-print.c Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: johelegp at gmail dot com CC: johelegp at gmail dot com Target Milestone: --- See https://godbolt.org/z/3rGTTr6jE. write.cpp: ```C++ export module write; export void write(const auto &v) {} ``` main.cpp: ```C++ import write; int main() { write(char{}); } ``` Compile commands: ``` gcc -Wall -Wextra -fmodules-ts -std=c++23 -c write.cpp gcc -Wall -Wextra -fmodules-ts -std=c++23 -c main.cpp ``` Output: ``` In module write, imported at main.cpp:1: in pp_string, at pretty-print.c:1827 0x2068f9d internal_error(char const*, ...) ???:0 0x973872 fancy_abort(char const*, int, char const*) ???:0 0x2086861 pp_format(pretty_printer*, text_info*) ???:0 0x2087d92 pp_verbatim(pretty_printer*, char const*, ...) ???:0 0x2067adf diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*) ???:0 0x2068720 warning_at(unsigned int, int, char const*, ...) ???:0 0xca067c do_warn_unused_parameter(tree_node*) ???:0 0xa3ba82 finish_function(bool) ???:0 0xb77dfb instantiate_decl(tree_node*, bool, bool) ???:0 0xb9b883 instantiate_pending_templates(int) ???:0 0xa50e3c c_parse_final_cleanups() ???:0 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://bugs.archlinux.org/> for instructions. ```
next reply other threads:[~2021-10-04 19:17 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-10-04 19:17 johelegp at gmail dot com [this message] 2021-10-04 19:21 ` [Bug c++/102598] " johelegp at gmail dot com 2022-03-24 2:47 ` johelegp at gmail dot com 2024-02-11 14:00 ` nshead 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-102598-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).